Permalink
Browse files

[ct] (0) Support definitionURL='' attribute in MathML. (credit: hs)

git-svn-id: http://svn.whatwg.org/webapps@2130 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent eed4417 commit fda210bd25de89ec6666f61d6b74f8a52ccb8f60 @Hixie Hixie committed Aug 29, 2008
Showing with 41 additions and 7 deletions.
  1. +24 −7 index
  2. +17 −0 source
View
@@ -49269,6 +49269,8 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
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 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
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 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
</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 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
<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 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
<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 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
<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 @@ interface <dfn id=messagechannel>MessageChannel</dfn> {
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 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<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 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
<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
View
@@ -46332,6 +46332,7 @@ interface <dfn>MessageChannel</dfn> {
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 @@ interface <dfn>MessageChannel</dfn> {
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 @@ interface <dfn>MessageChannel</dfn> {
<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 @@ interface <dfn>MessageChannel</dfn> {
<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 @@ interface <dfn>MessageChannel</dfn> {
<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

0 comments on commit fda210b

Please sign in to comment.