-
Notifications
You must be signed in to change notification settings - Fork 174
Do not throw if the attribute setter is called with no arguments #1498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thank you for reviewing! I have some questions:
|
@lucacasonato and @jasnell should be able to comment for Deno and Node. Changing WPT as part of Firefox's workflow is fine. Though ideally the window between the specification change landing and the WPT PR is landing is small. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I am somewhat doubtful Deno and Node implement the specs so precisely here as to have run into this bug :)
We do implement it precisely, and do throw when |
I've checked some Node's WebAPIs, but so far I cannot find any affected cases. |
Thanks! And now bugs for all affected implementations are filed. |
Sounds good! Note that if you have to revert the Firefox patch for some reason, it'd be great if you could keep the WPT coverage intact. |
web-platform-tests/wpt#53894 is created for the WPT |
Do not throw if the attribute setter is called with no arguments
This is for #1497 .
This changes the attribute setter not to throw if it's called with no arguments (this can happen only if the setter function is extracted from the property descriptor and directly called), and instead treat it as if
undefined
is passed.No browsers had been following the previous behavior, and the updated behavior matches WebKit.
MDN issue is filed: (extracting the setter function and directly calling it shouldn't be done in regular usage, and there won't be any need to describe this behavior in MDN)Preview | Diff