This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17719 - Consider throwing when attribute setter is called without an argument.
Summary: Consider throwing when attribute setter is called without an argument.
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-08 17:11 UTC by Ms2ger
Modified: 2012-12-10 05:52 UTC (History)
3 users (show)

See Also:


Attachments

Description Ms2ger 2012-07-08 17:11:13 UTC
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.
Comment 1 Cameron McCormack 2012-12-10 05:52:45 UTC
Yeah, I can buy that.

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.579;r2=1.580;f=h