[Bug 24028] New: Element.matches("!invalid!") should throw SyntaxError, not TypeError

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

            Bug ID: 24028
           Summary: Element.matches("!invalid!") should throw SyntaxError,
                    not TypeError
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

http://dom.spec.whatwg.org/#evaluate-a-selectors-string

All tested *MatchesSelector() implementations throw a SyntaxError when parsing
fails, but the spec requires TypeError.

SyntaxError seems more reasonable here, so change the spec to match reality?

-- 
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.