Skip to content

Commit

Permalink
Shadow: include shadow trees when adopting
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Mar 17, 2016
1 parent b4cc543 commit 25b6110
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4583,13 +4583,14 @@ a <var>document</var>, run these steps:
<p>If <var>document</var> is not the same as <var>oldDocument</var>, run these substeps:

<ol>
<li><p>For each <var>descendant</var> in <var>node</var>'s <a>inclusive descendants</a>, in
<a>tree order</a>, set <var>descendant</var>'s <a>node document</a> to <var>document</var>.
<li><p>For each <var>inclusiveDescendant</var> in <var>node</var>'s
<a>shadow-including inclusive descendants</a>, in <a>shadow-including tree order</a>, set
<var>inclusiveDescendant</var>'s <a>node document</a> to <var>document</var>.
<!--AttrExodus as well as any associated {{Attr}} nodes-->

<li><p>For each <var>descendant</var> in <var>node</var>'s <a>inclusive descendants</a>, in
<a>tree order</a>, run the <a>adopting steps</a> with <var>descendant</var> and
<var>oldDocument</var>.
<li><p>For each <var>inclusiveDescendant</var> in <var>node</var>'s
<a>shadow-including inclusive descendants</a>, in <a>shadow-including tree order</a>, run the
<a>adopting steps</a> with <var>inclusiveDescendant</var> and <var>oldDocument</var>.
</ol>
</ol>

Expand Down
4 changes: 2 additions & 2 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2546,9 +2546,9 @@ <h3 class="heading settled" data-level="4.5" id="interface-document"><span class
<p>If <var>document</var> is not the same as <var>oldDocument</var>, run these substeps: </p>
<ol>
<li>
<p>For each <var>descendant</var> in <var>node</var>’s <a data-link-type="dfn" href="#concept-tree-inclusive-descendant">inclusive descendants</a>, in <a data-link-type="dfn" href="#concept-tree-order">tree order</a>, set <var>descendant</var>’s <a data-link-type="dfn" href="#concept-node-document">node document</a> to <var>document</var>. </p>
<p>For each <var>inclusiveDescendant</var> in <var>node</var>’s <a data-link-type="dfn" href="#concept-shadow-including-inclusive-descendant">shadow-including inclusive descendants</a>, in <a data-link-type="dfn" href="#concept-shadow-including-tree-order">shadow-including tree order</a>, set <var>inclusiveDescendant</var>’s <a data-link-type="dfn" href="#concept-node-document">node document</a> to <var>document</var>. </p>
<li>
<p>For each <var>descendant</var> in <var>node</var>’s <a data-link-type="dfn" href="#concept-tree-inclusive-descendant">inclusive descendants</a>, in <a data-link-type="dfn" href="#concept-tree-order">tree order</a>, run the <a data-link-type="dfn" href="#concept-node-adopt-ext">adopting steps</a> with <var>descendant</var> and <var>oldDocument</var>. </p>
<p>For each <var>inclusiveDescendant</var> in <var>node</var>’s <a data-link-type="dfn" href="#concept-shadow-including-inclusive-descendant">shadow-including inclusive descendants</a>, in <a data-link-type="dfn" href="#concept-shadow-including-tree-order">shadow-including tree order</a>, run the <a data-link-type="dfn" href="#concept-node-adopt-ext">adopting steps</a> with <var>inclusiveDescendant</var> and <var>oldDocument</var>. </p>
</ol>
</ol>
<p>The <dfn class="idl-code" data-dfn-for="Document" data-dfn-type="method" data-export="" id="dom-document-adoptnode"><code>adoptNode(<var>node</var>)</code><a class="self-link" href="#dom-document-adoptnode"></a></dfn> method, when invoked,
Expand Down

0 comments on commit 25b6110

Please sign in to comment.