[html5] r2130 - [ct] (0) Support definitionURL='' attribute in MathML. (credit: hs)
whatwg at whatwg.org
whatwg at whatwg.org
Fri Aug 29 04:39:57 PDT 2008
Author: ianh
Date: 2008-08-29 04:39:38 -0700 (Fri, 29 Aug 2008)
New Revision: 2130
Modified:
index
source
Log:
[ct] (0) Support definitionURL='' attribute in MathML. (credit: hs)
Modified: index
===================================================================
--- index 2008-08-29 11:05:44 UTC (rev 2129)
+++ index 2008-08-29 11:39:38 UTC (rev 2130)
@@ -49269,6 +49269,8 @@
instead of appending it to the <a href="#current5">current node</a>. (This
happens in particular during the parsing of tables with invalid content.)
+ <hr>
+
<p>When the steps below require the UA to <dfn id=insert1>insert a foreign
element</dfn> for a token, the UA must first <a href="#create0">create an
element for the token</a> in the given namespace, and then append this
@@ -49277,7 +49279,12 @@
href="#current5">current node</a>. If the newly created element has an
<code title="">xmlns</code> attribute in the <a href="#xmlns">XMLNS
namespace</a> whose value is not exactly the same as the element's
- namespace, that is a <a href="#parse2">parse error</a>.</p>
+ namespace, that is a <a href="#parse2">parse error</a>.
+
+ <p>When the steps below require the user agent to <dfn id=adjust>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>
<!--XXXSVG
<p>When the steps below require the user agent to <dfn>adjust SVG
attributes</dfn> for a token, then, for each attribute on the token
@@ -49355,7 +49362,7 @@
</table>
-->
- <p>When the steps below require the user agent to <dfn id=adjust>adjust
+ <p>When the steps below require the user agent to <dfn id=adjust0>adjust
foreign attributes</dfn> for a token, then, if any of the attributes on
the token match the strings given in the first column of the following
table, let the attribute be a namespaced attribute, with the prefix being
@@ -49486,6 +49493,8 @@
<td> <a href="#xmlns">XMLNS namespace</a>
</table>
+ <hr>
+
<p>The <dfn id=generic>generic CDATA element parsing algorithm</dfn> and
the <dfn id=generic0>generic RCDATA element parsing algorithm</dfn>
consist of the following steps. These algorithms are always invoked in
@@ -51481,7 +51490,10 @@
<p><a href="#reconstruct">Reconstruct the active formatting elements</a>,
if any.</p>
- <p><a href="#adjust">Adjust foreign attributes</a> for the token. (This
+ <p><a href="#adjust">Adjust MathML attributes</a> for the token. (This
+ fixes the case of MathML attributes that are not all lowercase.)</p>
+
+ <p><a href="#adjust0">Adjust foreign attributes</a> for the token. (This
fixes the use of namespaced attributes, in particular XLink.)</p>
<p><a href="#insert1">Insert a foreign element</a> for the token, in the
@@ -52484,7 +52496,12 @@
<dt>Any other start tag
- <dd> <!--XXXSVG
+ <dd>
+ <p>If the <a href="#current5">current node</a> is an element in the <a
+ href="#mathml0">MathML namespace</a>, <a href="#adjust">adjust MathML
+ attributes</a> for the token. (This fixes the case of MathML attributes
+ that are not all lowercase.)</p>
+ <!--XXXSVG
<p>If the <span>current node</span> is an element in the <span>SVG
namespace</span>, and the token's tag name is one of the ones in
the first column of the following table, change the tag name to
@@ -52541,7 +52558,7 @@
lowercase.)</p>
-->
- <p><a href="#adjust">Adjust foreign attributes</a> for the token. (This
+ <p><a href="#adjust0">Adjust foreign attributes</a> for the token. (This
fixes the use of namespaced attributes, in particular XLink in SVG.)</p>
<p><a href="#insert1">Insert a foreign element</a> for the token, in the
@@ -53016,7 +53033,7 @@
<p class=example>As another example, consider the attribute
<code>xlink:href</code>. Used on a MathML element, it becomes, after being
- <a href="#adjust" title="adjust foreign attributes">adjusted</a>, an
+ <a href="#adjust0" title="adjust foreign attributes">adjusted</a>, an
attribute with a prefix "<code title="">xlink</code>" and a local name
"<code title="">href</code>". However, used on an HTML element, it becomes
an attribute with no prefix and the local name "<code
@@ -53027,7 +53044,7 @@
<p class=note>The resulting names from this conversion conveniently can't
clash with any attribute generated by the <a href="#html-0">HTML
parser</a>, since those are all either lowercase or those listed in the <a
- href="#adjust">adjust foreign attributes</a> algorithm's table.
+ href="#adjust0">adjust foreign attributes</a> algorithm's table.
<p>If the XML API restricts comments from having two consecutive U+002D
HYPHEN-MINUS characters (--), the tool may insert a single U+0020 SPACE
Modified: source
===================================================================
--- source 2008-08-29 11:05:44 UTC (rev 2129)
+++ source 2008-08-29 11:39:38 UTC (rev 2130)
@@ -46332,6 +46332,7 @@
node</span>. (This happens in particular during the parsing of
tables with invalid content.)</p>
+ <hr>
<p>When the steps below require the UA to <dfn>insert a foreign
element</dfn> for a token, the UA must first <span>create an element
@@ -46343,6 +46344,11 @@
whose value is not exactly the same as the element's namespace, that
is a <span>parse error</span>.</p>
+ <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>
+
<!--XXXSVG
<p>When the steps below require the user agent to <dfn>adjust SVG
attributes</dfn> for a token, then, for each attribute on the token
@@ -46449,6 +46455,7 @@
<tr> <td> <code title="">xmlns:xlink</code> <td> <code title="">xmlns</code> <td> <code title="">xlink</code> <td> <span>XMLNS namespace</span>
</table>
+ <hr>
<p>The <dfn>generic CDATA element parsing algorithm</dfn> and the
<dfn>generic RCDATA element parsing algorithm</dfn> consist of the
@@ -48397,6 +48404,10 @@
<p><span>Reconstruct the active formatting elements</span>, if
any.</p>
+ <p><span>Adjust MathML attributes</span> for the token. (This
+ fixes the case of MathML attributes that are not all
+ lowercase.)</p>
+
<p><span>Adjust foreign attributes</span> for the token. (This
fixes the use of namespaced attributes, in particular XLink.)</p>
@@ -49447,6 +49458,12 @@
<dt>Any other start tag</dt>
<dd>
+
+ <p>If the <span>current node</span> is an element in the
+ <span>MathML namespace</span>, <span>adjust MathML
+ attributes</span> for the token. (This fixes the case of MathML
+ attributes that are not all lowercase.)</p>
+
<!--XXXSVG
<p>If the <span>current node</span> is an element in the <span>SVG
namespace</span>, and the token's tag name is one of the ones in
More information about the Commit-Watchers
mailing list