W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2012

[Bug 17719] New: Consider throwing when attribute getters are called without an argument.

From: <bugzilla@jessica.w3.org>
Date: Sun, 08 Jul 2012 17:11:13 +0000
To: public-script-coord@w3.org
Message-ID: <bug-17719-3890@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17719

           Summary: Consider throwing when attribute getters are called
                    without an argument.
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: Ms2ger@gmail.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


Object.getOwnPropertyDescriptor(Node.prototype, "nodeValue").set.call(node/*,
no arguments */)

The spec treats the argument as undefined, and Gecko's new DOM bindings follow
the spec. If I'm not mistaken, IE10 throws an exception. I slightly prefer
throwing for consistency with operations.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Sunday, 8 July 2012 17:11:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC