Skip to content

Align with DOM DocumentFragment adoption changes - #5413

Closed
annevk wants to merge 1 commit into
mainfrom
annevk/dom-adopt
Closed

annevk wants to merge 1 commit into
mainfrom
annevk/dom-adopt

Conversation

@annevk

@annevk annevk commented Mar 28, 2020 •

Copy link
Copy Markdown
Member

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 )

@domenic domenic left a comment

Copy link
Copy Markdown
Member

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)

@annevk
annevk requested a review from domenic March 31, 2020 07:01
@annevk

annevk commented Mar 31, 2020

Copy link
Copy Markdown
Member Author

Addressed feedback, but whatwg/html-build#218 is happening now.

Base automatically changed from master to main January 15, 2021 07:57
Comment thread source Resolved
annevk added a commit to whatwg/dom that referenced this pull request Oct 18, 2022
@annevk
annevk requested review from domenic, mfreed7 and rniwa October 18, 2022 09:26
@annevk annevk added the agenda+ To be discussed at a triage meeting label Oct 20, 2022
Comment thread source
<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>

Copy link
Copy Markdown
Contributor

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.

@annevk

annevk commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

Unfortunately this doesn't work. DocumentFragment nodes with a host need different handling.

@annevk annevk closed this Jul 8, 2026
@annevk
annevk deleted the annevk/dom-adopt branch July 8, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants