Skip to content

Commit

Permalink
[e] (0) Factor out 'insert an HTML element' and 'insert a foreign ele…
Browse files Browse the repository at this point in the history
…ment', since they're now the same.

Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@8117 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 1, 2013
1 parent ace4550 commit 7e3f63c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 70 deletions.
28 changes: 6 additions & 22 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -89362,13 +89362,13 @@ <h5 id=creating-and-inserting-nodes><span class=secno>12.2.5.1 </span>Creating a

</ol><hr><!-- The names of these algorithms are kinda confusing; e.g. see the confusion in
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18367
Not sure what we could call them instead, though... --><p>When the steps below require the user agent to <dfn id=insert-an-html-element>insert an HTML element</dfn> for a token,
the user agent must run the following steps:</p>
Not sure what we could call them instead, though... --><p>When the steps below require the user agent to <dfn id=insert-a-foreign-element>insert a foreign element</dfn> for a token in a given namespace,
the user agent must run these steps:</p>

<ol><li><p>Let the <var title="">adjusted insertion location</var> be the <a href=#appropriate-place-for-inserting-a-node>appropriate
place for inserting a node</a>.</li>

<li><p><a href=#create-an-element-for-the-token>Create an element for the token</a> in the <a href=#html-namespace-0>HTML namespace</a>, with the
<li><p><a href=#create-an-element-for-the-token>Create an element for the token</a> in the given namespace, with the
intended parent being the element in which the <var title="">adjusted insertion location</var>
finds itself.</li>

Expand All @@ -89389,26 +89389,10 @@ <h5 id=creating-and-inserting-nodes><span class=secno>12.2.5.1 </span>Creating a

<li><p>Return the newly created element.</li>

</ol><hr><p>When the steps below require the user agent to <dfn id=insert-a-foreign-element>insert a foreign element</dfn> for a token in a given namespace,
the user agent must run these steps:</p>

<ol><li><p>Let the <var title="">adjusted insertion location</var> be the <a href=#appropriate-place-for-inserting-a-node>appropriate
place for inserting a node</a>.</li>

<li><p><a href=#create-an-element-for-the-token>Create an element for the token</a> in the given namespace, with the
intended parent being the element in which the <var title="">adjusted insertion location</var>
finds itself.</li>

<li><p>If it is possible to insert an element at the <var title="">adjusted insertion
location</var>, then insert the newly created element at the <var title="">adjusted insertion
location</var>.</li>

<li><p>Push the element onto the <a href=#stack-of-open-elements>stack of open elements</a> so that it is the new
<a href=#current-node>current node</a>.</li>

<li><p>Return the newly created element.</li>
</ol><p>When the steps below require the user agent to <dfn id=insert-an-html-element>insert an HTML element</dfn> for a token,
the user agent must <a href=#insert-a-foreign-element>insert a foreign element</a> for the token, in the <a href=#html-namespace-0>HTML namespace</a>.</p>

</ol><p>When the steps below require the user agent to <dfn id=adjust-mathml-attributes>adjust MathML attributes</dfn> for a token,
<hr><p>When the steps below require the user agent to <dfn id=adjust-mathml-attributes>adjust MathML attributes</dfn> for a token,
then, if the token has an attribute named <code title="">definitionurl</code>, change its name to
<code title="">definitionURL</code> (note the case difference).</p>

Expand Down
28 changes: 6 additions & 22 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -89362,13 +89362,13 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>

</ol><hr><!-- The names of these algorithms are kinda confusing; e.g. see the confusion in
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18367
Not sure what we could call them instead, though... --><p>When the steps below require the user agent to <dfn id=insert-an-html-element>insert an HTML element</dfn> for a token,
the user agent must run the following steps:</p>
Not sure what we could call them instead, though... --><p>When the steps below require the user agent to <dfn id=insert-a-foreign-element>insert a foreign element</dfn> for a token in a given namespace,
the user agent must run these steps:</p>

<ol><li><p>Let the <var title="">adjusted insertion location</var> be the <a href=#appropriate-place-for-inserting-a-node>appropriate
place for inserting a node</a>.</li>

<li><p><a href=#create-an-element-for-the-token>Create an element for the token</a> in the <a href=#html-namespace-0>HTML namespace</a>, with the
<li><p><a href=#create-an-element-for-the-token>Create an element for the token</a> in the given namespace, with the
intended parent being the element in which the <var title="">adjusted insertion location</var>
finds itself.</li>

Expand All @@ -89389,26 +89389,10 @@ dictionary <dfn id=storageeventinit>StorageEventInit</dfn> : <a href=#eventinit>

<li><p>Return the newly created element.</li>

</ol><hr><p>When the steps below require the user agent to <dfn id=insert-a-foreign-element>insert a foreign element</dfn> for a token in a given namespace,
the user agent must run these steps:</p>

<ol><li><p>Let the <var title="">adjusted insertion location</var> be the <a href=#appropriate-place-for-inserting-a-node>appropriate
place for inserting a node</a>.</li>

<li><p><a href=#create-an-element-for-the-token>Create an element for the token</a> in the given namespace, with the
intended parent being the element in which the <var title="">adjusted insertion location</var>
finds itself.</li>

<li><p>If it is possible to insert an element at the <var title="">adjusted insertion
location</var>, then insert the newly created element at the <var title="">adjusted insertion
location</var>.</li>

<li><p>Push the element onto the <a href=#stack-of-open-elements>stack of open elements</a> so that it is the new
<a href=#current-node>current node</a>.</li>

<li><p>Return the newly created element.</li>
</ol><p>When the steps below require the user agent to <dfn id=insert-an-html-element>insert an HTML element</dfn> for a token,
the user agent must <a href=#insert-a-foreign-element>insert a foreign element</a> for the token, in the <a href=#html-namespace-0>HTML namespace</a>.</p>

</ol><p>When the steps below require the user agent to <dfn id=adjust-mathml-attributes>adjust MathML attributes</dfn> for a token,
<hr><p>When the steps below require the user agent to <dfn id=adjust-mathml-attributes>adjust MathML attributes</dfn> for a token,
then, if the token has an attribute named <code title="">definitionurl</code>, change its name to
<code title="">definitionURL</code> (note the case difference).</p>

Expand Down
32 changes: 6 additions & 26 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -99826,15 +99826,15 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18367
Not sure what we could call them instead, though... -->

<p>When the steps below require the user agent to <dfn>insert an HTML element</dfn> for a token,
the user agent must run the following steps:</p>
<p>When the steps below require the user agent to <dfn>insert a foreign element</dfn> for a token in a given namespace,
the user agent must run these steps:</p>

<ol>

<li><p>Let the <var title="">adjusted insertion location</var> be the <span>appropriate
place for inserting a node</span>.</p></li>

<li><p><span>Create an element for the token</span> in the <span>HTML namespace</span>, with the
<li><p><span>Create an element for the token</span> in the given namespace, with the
intended parent being the element in which the <var title="">adjusted insertion location</var>
finds itself.</p></li>

Expand All @@ -99857,30 +99857,10 @@ dictionary <dfn>StorageEventInit</dfn> : <span>EventInit</span> {

</ol>

<hr>

<p>When the steps below require the user agent to <dfn>insert a foreign element</dfn> for a token in a given namespace,
the user agent must run these steps:</p>

<ol>

<li><p>Let the <var title="">adjusted insertion location</var> be the <span>appropriate
place for inserting a node</span>.</p></li>

<li><p><span>Create an element for the token</span> in the given namespace, with the
intended parent being the element in which the <var title="">adjusted insertion location</var>
finds itself.</p></li>

<li><p>If it is possible to insert an element at the <var title="">adjusted insertion
location</var>, then insert the newly created element at the <var title="">adjusted insertion
location</var>.</p></li>

<li><p>Push the element onto the <span>stack of open elements</span> so that it is the new
<span>current node</span>.</p></li>

<li><p>Return the newly created element.</p></li>
<p>When the steps below require the user agent to <dfn>insert an HTML element</dfn> for a token,
the user agent must <span>insert a foreign element</span> for the token, in the <span>HTML namespace</span>.</p>

</ol>
<hr>

<p>When the steps below require the user agent to <dfn>adjust MathML attributes</dfn> for a token,
then, if the token has an attribute named <code title="">definitionurl</code>, change its name to
Expand Down

0 comments on commit 7e3f63c

Please sign in to comment.