[html5] r8117 - [e] (0) Factor out 'insert an HTML element' and 'insert a foreign element', sinc [...]
whatwg at whatwg.org
whatwg at whatwg.org
Thu Aug 1 13:22:27 PDT 2013
Author: ianh
Date: 2013-08-01 13:22:26 -0700 (Thu, 01 Aug 2013)
New Revision: 8117
Modified:
complete.html
index
source
Log:
[e] (0) Factor out 'insert an HTML element' and 'insert a foreign element', since they're now the same.
Affected topics: HTML Syntax and Parsing
Modified: complete.html
===================================================================
--- complete.html 2013-08-01 20:20:20 UTC (rev 8116)
+++ complete.html 2013-08-01 20:22:26 UTC (rev 8117)
@@ -89362,13 +89362,13 @@
</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>
@@ -89389,26 +89389,10 @@
<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><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><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=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>
Modified: index
===================================================================
--- index 2013-08-01 20:20:20 UTC (rev 8116)
+++ index 2013-08-01 20:22:26 UTC (rev 8117)
@@ -89362,13 +89362,13 @@
</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>
@@ -89389,26 +89389,10 @@
<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><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><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=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>
Modified: source
===================================================================
--- source 2013-08-01 20:20:20 UTC (rev 8116)
+++ source 2013-08-01 20:22:26 UTC (rev 8117)
@@ -99826,15 +99826,15 @@
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>
@@ -99857,31 +99857,11 @@
</ol>
+ <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>
+
<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>
-
- </ol>
-
<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
<code title="">definitionURL</code> (note the case difference).</p>
More information about the Commit-Watchers
mailing list