Created attachment 173080 [details] test case Browsers tested: Chrome 22 - PASS Chrome 23.0.1271.64 - FAIL Safari 6 (AppleWebKit/536.26.17) - PASS Webkit Nightly 6.0.2 (AppleWebKit/537.19+) - FAIL Repro: Run the attached file. Expected: The alert dialog shows: contains "newclass": true Actual: The alert dialog shows: contains "newclass": false Notes: Adding a doctype to the iframe is a workaround to the issue: doc.write('<!doctype html><html><body></body></html>');
This happens when an element is moved from a standards mode document to a quirks mode document since the internal list of class names now needs to be handled by the ClassList. We need to verify that ClassList::classNames returns an up to date SpaceSplitString. Is this really a regression? I'm surprised this ever worked.
Yes, I verified it worked on Chrome 22 and Safari 6.
Definitely a regression, I bisected to <http://trac.webkit.org/changeset/125239>.
Created attachment 173115 [details] Patch
Comment on attachment 173115 [details] Patch Clearing flags on attachment: 173115 Committed r134102: <http://trac.webkit.org/changeset/134102>
All reviewed patches have been landed. Closing bug.
Thanks!
You may want to merge this into m25 given it's super low risk and high return.
(In reply to comment #8) > You may want to merge this into m25 given it's super low risk and high return. Whoops, wrong bug.