-
Notifications
You must be signed in to change notification settings - Fork 3k
fix: Revert HTMLDocument
removal
#5104
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
base: main
Are you sure you want to change the base?
Conversation
7a61c49
to
15966b3
Compare
Are there tests that show that the getter is only implemented on Where is it defined what ends up creating which type of document? |
I’ve now created the test for this at web-platform-tests/wpt#20403. |
To be clear, we need many more tests for this. E.g., web-platform-tests/wpt#20432 cannot use And also, the specification side for all those things needs to be crystal clear. A lot of this is "Page load processing model ..." but there's also various other algorithms that end up creating |
Well, this is just step 1 that reinstates the interface. |
We don't generally do changes that leave the specification in an inconsistent state, so I don't think it would make sense to reinstate the interface without those other changes included. |
Well, I looked through git history all the way back to 2009, and “new This means that a I don’t really know how to specify that in a sane manner. |
d35283f
to
d62bbf0
Compare
I think the ambition was always to have these classes merged as having them separate does not make a whole lot of sense. So now that they're somewhat separate we'll have to say which document creator creates which class. |
cbc0ca6
to
d62bbf0
Compare
b968f89
to
3370bad
Compare
<li><p>If <var>doc</var> is an <span data-x="HTML documents">HTML document</span>, mark | ||
<var>new doc</var> as an <span data-x="HTML documents">HTML document</span> | ||
also.</p></li> | ||
<li><p>Otherwise, let <var>new doc</var> be a new <code>XMLDocument</code>.</p></li> |
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.
Previously, this would’ve resulted in a Document
with a default type
.
See issue #4792, whatwg/dom#221 and whatwg/dom#278
This is already implemented in all major browsers (Firefox, Chrome and Safari).
WPT tests: web-platform-tests/wpt#20403, web-platform-tests/wpt#20676
(See WHATWG Working Mode: Changes for more details.)
review?(@annevk, @domenic)
💥 Error: Wattsi server error 💥
PR Preview failed to build. (Last tried on Jan 15, 2021, 7:59 AM UTC).
More
PR Preview relies on a number of web services to run. There seems to be an issue with the following one:
🚨 Wattsi Server - Wattsi Server is the web service used to build the WHATWG HTML spec.
🔗 Related URL
If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.