Skip to content
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

Run the adopting steps recursively #66

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 11 additions & 8 deletions dom.bs
Expand Up @@ -4637,14 +4637,17 @@ a <var>document</var>, run these steps:
<a>remove</a> <var>node</var> from
its <a>parent</a>.

<li>Set <var>node</var>'s
<a>inclusive descendants</a>'s
<a>node document</a> to <var>document</var>.
<!--AttrExodus as well as any associated {{Attr}} nodes-->

<li>Run any <a>adopting steps</a> defined for
<var>node</var> in <a>other applicable specifications</a> and pass
<var>node</var> and <var>oldDocument</var> as parameters.
<li>
For each <var>descendant</var> in <var>nodes</var>'s <a>inclusive descendants</a>, in
<a>tree order</a>, run these substeps:

<ol>
<li>Set <var>descendant</var>'s <a>node document</a> to <var>document</var>.
<!--AttrExodus as well as any associated {{Attr}} nodes-->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be followed by a newline.


<li>Run the <a>adopting steps</a> with node <var>descendant</var> and oldDocument
<var>oldDocument</var>.
</ol>
</ol>

The
Expand Down