-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Call out inconsistency in document.body behavior #3449
Conversation
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.
I don't really find this clarifying. Getters and setters always have different behavior, i.e. one gets, and one sets. I don't think "different behavior" is a good way of phrasing this.
An example might be particularly helpful to illustrate what is meant.
Um, yeah you are right. :) An example would be an SVG doc, and setting document.body to a body (which appends it to the root), then getting document.body (returns null). |
Ah, awesome, "the value returned by the getter is not always the one passed to the setter" would be a great way of phrasing it :) |
@domenic OK, please take a look :) |
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.
This is really nice, thanks for the update!
Oh, I guess we don't usually use "Editorial:" for clarifications per https://github.com/whatwg/meta/blob/master/COMMITTING.md#title-prefixes |
Fixes #3403.
Tests: web-platform-tests/wpt#9231
/dom.html ( diff )