Skip to content

Commit

Permalink
Fix #464: cloning should only treat is="" specially for HTML elements
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Mar 29, 2016
1 parent c61835e commit ffdb5ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/custom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1058,7 +1058,7 @@ <h3>DOM+: Elements</h3>
<section id="clone-modifications-to-dom">
<h3>DOM+: Cloning</h3>

<p class="monkeypatch">The <a href="https://dom.spec.whatwg.org/#concept-node-clone">clone a node</a> algorithm will need to be modified as follows. A new case, separate from the main switch, will be needed to generate <var>copy</var> for <code>Element</code>s. It should use <a>create an element</a>, given <var>document</var>, <var>node</var>'s local name, <var>node</var>'s namespace prefix, <var>node</var>'s namespace, and the value of <var>node</var>'s <code>is</code> attribute (if present). The <var>synchronous custom elements flag</var> should be unset. The attribute copying step should also be modified to omit the <code>is</code> attribute, since that is taken care of by <a>create an element</a>.</p>
<p class="monkeypatch">The <a href="https://dom.spec.whatwg.org/#concept-node-clone">clone a node</a> algorithm will need to be modified as follows. A new case, separate from the main switch, will be needed to generate <var>copy</var> for <code>Element</code>s. It should use <a>create an element</a>, given <var>document</var>, <var>node</var>'s local name, <var>node</var>'s namespace prefix, <var>node</var>'s namespace, and the value of <var>node</var>'s <code>is</code> attribute (if present and if the element's namespace is the HTML namespace). The <var>synchronous custom elements flag</var> should be unset. The attribute copying step should also be modified to omit the <code>is</code> attribute (if it was passed to create an element), since that is taken care of by <a>create an element</a>.</p>

</section>

Expand Down

0 comments on commit ffdb5ba

Please sign in to comment.