-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Align with DOM DocumentFragment adoption changes #5413
base: main
Are you sure you want to change the base?
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.
Thoughts on how to pass boolean variables? I wish we had a better pattern for them.
I don't like using <var>
for something that is never "let" or "set". Any of the following would be reasonable to me:
- "into doc, with true" (or "passing true")
- "into doc, with [force document fragment adoption] set to true", where that's a link to a
<dfn>
- "into doc, with true for the the force document fragment adoption parameter" (no link)
Addressed feedback, but whatwg/html-build#218 is happening now. |
Tests: web-platform-tests/wpt#22504. Corresponding HTML PR: whatwg/html#5413. Closes #813 and closes #814.
b62bbc7
to
b4ec415
Compare
<li><p><span data-x="concept-node-adopt">Adopt</span> <var>node</var>'s | ||
<span>template contents</span> (a <code>DocumentFragment</code> object) into <var>doc</var>.</p></li> | ||
<li><p><span data-x="concept-node-adopt">Adopt</span> <var>node</var>'s <span>template | ||
contents</span> into <var>doc</var>, with true.</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.
This change (adding , with true
) is ok by me. But there seems to be a compat issue with the more general change.
Complements whatwg/dom#819.
Thoughts on how to pass boolean variables? I wish we had a better pattern for them.
(See WHATWG Working Mode: Changes for more details.)
/scripting.html ( diff )