[Webkit-unassigned] [Bug 149160] New: querySelector throws exception for -webkit prefixed pseudo elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 15 05:45:44 PDT 2015


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

            Bug ID: 149160
           Summary: querySelector throws exception for -webkit prefixed
                    pseudo elements
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: Macintosh
                OS: Mac OS X 10.10
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: hartman.wiki at gmail.com

Per: http://dev.w3.org/2006/webapi/selectors-api/#interface-definitions

Authors are advised that while the use of pseudo-elements in selectors is permitted, they will not match any elements in the document, and thus would not result in any elements being returned. Therefore, authors are advised to avoid the use of pseudo-elements in selectors that are passed to the methods defined in this specification.

This works as expected (returns null) in Webkit for pseudo elements like ::before and ::after, but all Webkit specific pseudo elements (like -webkit-search-decoration) throws DOM Exception 12

This fails:
document.querySelector( 'input::-webkit-search-decoration' )

See also the console output of this Fiddle: http://jsfiddle.net/TheDJ/db27kn7p/
This will return null in Chrome.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150915/4927edd2/attachment.html>


More information about the webkit-unassigned mailing list