Do not throw if DOM attribute setter is called with no arguments
Categories
(Core :: DOM: Bindings (WebIDL), task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
()
Details
Attachments
(2 files)
for https://github.com/whatwg/webidl/issues/1497
The spec requires the DOM attribute setter to throw if it's called with no arguments, but the behavior doesn't match across browsers,
and also throwing there doesn't match ECMAScript built-ins.
The possible fix is to modify the spec not to throw, but treat it as undefined value, and update implementation to follow it.
I have a patch, and will post it shortly
| Assignee | ||
Comment 1•10 months ago
|
||
| Assignee | ||
Comment 2•10 months ago
|
||
Updated•10 months ago
|
Updated•10 months ago
|
Comment 3•10 months ago
|
||
There are some r+ patches which didn't land and no activity in this bug for 2 weeks.
:arai, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 5•10 months ago
|
||
it's waiting for https://github.com/whatwg/webidl/pull/1498 to become ready to merge,
so that we can land the spec change and the WPT at the same time.
I'll check if/how Node is affected.
Comment 8•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bfdc0f72dbb4
https://hg.mozilla.org/mozilla-central/rev/d175cc1d3a07
Updated•9 months ago
|
Description
•