[Webkit-unassigned] [Bug 136807] New: CSS value in whitespace-separated list attribute selector (~=) mishandles tab/newline/etc.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 14 18:34:49 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=136807

           Summary: CSS value in whitespace-separated list attribute
                    selector (~=) mishandles tab/newline/etc.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://codepen.io/gibson042/pen/ICExL
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: richard.gibson at gmail.com


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.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list