|
|
|
|
|
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 |
|
|
|
|
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 |
|
|
|
|
</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 |
|
|
|
|
<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 |
|
|
|
|
<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 |
|
|
|
|
|
|
|
<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 |
|
|
|
|
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 |
|
|
|
|
|
|
|
<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 |
|
|
|
|
<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 |