[Bug 25958] New: TypeError or SyntaxError for querySelector() and querySelectorAll()

[email protected]
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25958

            Bug ID: 25958
           Summary: TypeError or SyntaxError for querySelector() and
                    querySelectorAll()
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

If matches() was changed:

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24028

then what about querySelector() and querySelectorAll()? This methods are older
than matches(), but still in "scope-match a selectors string " algo we have:

2. If s is failure, throw a JavaScript TypeError. 

Firefox, Chrome and IE return DOMException "SyntaxError", not JavaScript
TypeError (query() and queryAll() still not supported so skipping them). This
behaviour is correct per Selectors API Level 1/Selectors API Level 2:

http://www.w3.org/TR/selectors-api/#parse-a-selector
http://dev.w3.org/2006/webapi/selectors-api2/#parse-a-selector

so really any implementators wants/plans change this?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.