RESOLVED FIXED 136807
CSS value in whitespace-separated list attribute selector (~=) mishandles tab/newline/etc.
https://bugs.webkit.org/show_bug.cgi?id=136807
Summary CSS value in whitespace-separated list attribute selector (~=) mishandles tab...
Richard Gibson
Reported 2014-09-14 18:34:51 PDT
jQuery ticket: http://bugs.jquery.com/ticket/15233 workaround: https://github.com/jquery/sizzle/commit/aca006dd2d3fb3c407ff99bb25153852d73e0f6b#diff-3 Spec reference: http://www.w3.org/TR/css3-selectors/#attribute-representation http://www.w3.org/TR/css3-selectors/#whitespace The "[attribute~=word]" selector should split the attribute value on all CSS whitespace (space U+0020, tab U+0009, line feed U+000A, carriage return U+000D, form feed U+000C) and look for the test word in the resulting list. Webkit appears to only split on space characters.
Attachments
Patch (33.93 KB, patch)
2014-09-16 19:10 PDT, Benjamin Poulain
no flags
Benjamin Poulain
Comment 1 2014-09-15 20:28:20 PDT
Thank you for filing a bug for this! I'll fix this asap.
Benjamin Poulain
Comment 2 2014-09-16 19:10:06 PDT
Benjamin Poulain
Comment 3 2014-09-17 13:02:06 PDT
Comment on attachment 238233 [details] Patch Clearing flags on attachment: 238233 Committed r173697: <http://trac.webkit.org/changeset/173697>
Benjamin Poulain
Comment 4 2014-09-17 13:02:15 PDT
All reviewed patches have been landed. Closing bug.
Alexey Proskuryakov
Comment 5 2014-09-17 14:58:45 PDT
*** Bug 115954 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.