W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2013

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

From: <bugzilla@jessica.w3.org>
Date: Sat, 07 Dec 2013 23:22:22 +0000
To: www-dom@w3.org
Message-ID: <bug-24028-4009@http.www.w3.org/Bugs/Public/>

            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: annevk@annevk.nl
          Reporter: philipj@opera.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org


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.
Received on Saturday, 7 December 2013 23:22:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:21 UTC