WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
73573
Typing in a text box doesn't work as expected after applying a non-matching css style rule
https://bugs.webkit.org/show_bug.cgi?id=73573
Summary
Typing in a text box doesn't work as expected after applying a non-matching c...
famlam
Reported
2011-12-01 10:38:57 PST
(Doesn't happen in Chrome, fails in Safari 5.1.1 and 5.1.2 [didn't test other versions]) Reproduction steps 1. go to
http://www.gocomics.com/peanuts-holiday-countdown
. Log in with user: adblocktest password: abcdef 2. Type in the comment field: abc,,,cba (don't copy-paste: type) 3. paste the following in the address bar to insert the style element: javascript:var c=document.createElement("style");c.innerText='div[style]{}';document.documentElement.insertBefore(c,null); 4. Repeat step 2 Before: The text shows up as expected After: The text shown in the textbox is "abc,cba" Additional information: - Adding the attribute 'type="text/css"' to the <style> element doesn't help - The CSS selector doesn't match anything on the page. (and if it would, it doesn't add any rules, it's just {} ) OS: Windows 7 (but also confirmed on OS X 10.5.8) Extensions: none
Attachments
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2011-12-01 17:29:14 PST
I cannot reproduce this with recent WebKit. Could you please test with a nightly build from <
http://nightly.webkit.org/
>? Chances are that this has been fixed already, and Chrome just picked the fix earlier. In fact, this bug sounds familiar, but I cannot find it in Bugzilla at the moment.
famlam
Comment 2
2011-12-01 18:33:52 PST
Indeed, in
r101559
on Windows (7 SP1) I cannot reproduce it on this site. Thanks! (I wasn't able to test this in the two newer Windows builds as they fail to load the page).
Ryosuke Niwa
Comment 3
2011-12-01 19:33:38 PST
Great.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug