Skip to content

Commit

Permalink
[e] (0) xref error
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2038 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 11, 2008
1 parent c38f03d commit 6b129c6
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 44 deletions.
83 changes: 45 additions & 38 deletions index
Expand Up @@ -8745,7 +8745,8 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<td><a href="#innerhtml0"
title=dom-innerHTML-HTML><code>innerHTML</code> in HTML</a>

<td><span title=dom-innerHTML-XML><code>innerHTML</code> in XML</span>
<td><a href="#innerhtml1" title=dom-innerHTML-XML><code>innerHTML</code>
in XML</a>

<tr>
<th><dfn id=outerhtml title=dom-outerHTML><code>outerHTML</code></dfn>
Expand Down Expand Up @@ -9126,27 +9127,28 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<h4 id=dynamic2><span class=secno>3.7.3 </span>Dynamic markup insertion in
XML</h4>

<p>In an XML context, the <code title=dom-innerHTML-XML>innerHTML</code>
DOM attribute on <code><a href="#htmlelement">HTMLElement</a></code>s must
return a string in the form of an <a
href="http://www.w3.org/TR/xml/#wf-entities">internal general parsed
entity</a>, and on <code><a href="#htmldocument">HTMLDocument</a></code>s
must return a string in the form of a <a
href="http://www.w3.org/TR/xml/#sec-well-formed">document entity</a>. The
string returned must be XML namespace-well-formed and must be an
isomorphic serialization of all of that node's child nodes, in document
order. User agents may adjust prefixes and namespace declarations in the
serialization (and indeed might be forced to do so in some cases to obtain
namespace-well-formed XML). For the <code
title=dom-innerHTML-XML>innerHTML</code> attribute on <code><a
href="#htmlelement">HTMLElement</a></code> objects, if any of the elements
in the serialization are in no namespace, the default namespace in scope
for those elements must be explicitly declared as the empty
string.<!-- because otherwise round-tripping might break
<p>In an XML context, the <dfn id=innerhtml1
title=dom-innerHTML-XML><code>innerHTML</code></dfn> DOM attribute on
<code><a href="#htmlelement">HTMLElement</a></code>s must return a string
in the form of an <a href="http://www.w3.org/TR/xml/#wf-entities">internal
general parsed entity</a>, and on <code><a
href="#htmldocument">HTMLDocument</a></code>s must return a string in the
form of a <a href="http://www.w3.org/TR/xml/#sec-well-formed">document
entity</a>. The string returned must be XML namespace-well-formed and must
be an isomorphic serialization of all of that node's child nodes, in
document order. User agents may adjust prefixes and namespace declarations
in the serialization (and indeed might be forced to do so in some cases to
obtain namespace-well-formed XML). For the <code
title=dom-innerHTML-XML><a href="#innerhtml1">innerHTML</a></code>
attribute on <code><a href="#htmlelement">HTMLElement</a></code> objects,
if any of the elements in the serialization are in no namespace, the
default namespace in scope for those elements must be explicitly declared
as the empty string.<!-- because otherwise round-tripping might break
since it'll pick up the surrounding default ns when setting -->
(This doesn't apply to the <code title=dom-innerHTML-XML>innerHTML</code>
attribute on <code><a href="#htmldocument">HTMLDocument</a></code>
objects.) <a href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
(This doesn't apply to the <code title=dom-innerHTML-XML><a
href="#innerhtml1">innerHTML</a></code> attribute on <code><a
href="#htmldocument">HTMLDocument</a></code> objects.) <a
href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>

<p>If any of the following cases are found in the DOM being serialized, the
user agent must raise an <code>INVALID_STATE_ERR</code> exception:
Expand Down Expand Up @@ -9188,8 +9190,8 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
attribute with a name that contains an equals sign (=) will raised an
<code>INVALID_CHARACTER_ERR</code> exception.

<p>On setting, in an XML context, the <code
title=dom-innerHTML-XML>innerHTML</code> DOM attribute on <code><a
<p>On setting, in an XML context, the <code title=dom-innerHTML-XML><a
href="#innerhtml1">innerHTML</a></code> DOM attribute on <code><a
href="#htmlelement">HTMLElement</a></code>s and <code><a
href="#htmldocument">HTMLDocument</a></code>s must run the following
algorithm:
Expand All @@ -9199,30 +9201,33 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0
<p>The user agent must create a new <span>XML parser</span>.</p>

<li>
<p>If the <code title=dom-innerHTML-XML>innerHTML</code> attribute is
being set on an element, the user agent must <span>feed the
parser</span> just created the string corresponding to the start tag of
that element, declaring all the namespace prefixes that are in scope on
that element in the DOM, as well as declaring the default namespace (if
any) that is in scope on that element in the DOM.</p>
<p>If the <code title=dom-innerHTML-XML><a
href="#innerhtml1">innerHTML</a></code> attribute is being set on an
element, the user agent must <span>feed the parser</span> just created
the string corresponding to the start tag of that element, declaring all
the namespace prefixes that are in scope on that element in the DOM, as
well as declaring the default namespace (if any) that is in scope on
that element in the DOM.</p>

<li>
<p>The user agent must <span>feed the parser</span> just created the
string being assigned into the <code
title=dom-innerHTML-XML>innerHTML</code> attribute.</p>
string being assigned into the <code title=dom-innerHTML-XML><a
href="#innerhtml1">innerHTML</a></code> attribute.</p>

<li>
<p>If the <code title=dom-innerHTML-XML>innerHTML</code> attribute is
being set on an element, the user agent must <span>feed the
parser</span> the string corresponding to the end tag of that element.</p>
<p>If the <code title=dom-innerHTML-XML><a
href="#innerhtml1">innerHTML</a></code> attribute is being set on an
element, the user agent must <span>feed the parser</span> the string
corresponding to the end tag of that element.</p>

<li>
<p>If the parser found a well-formedness error, the attribute's setter
must raise a <code>SYNTAX_ERR</code> exception and abort these steps.</p>

<li>
<p>The user agent must remove the children nodes of the node whose <code
title=dom-innerHTML-XML>innerHTML</code> attribute is being set.</p>
title=dom-innerHTML-XML><a href="#innerhtml1">innerHTML</a></code>
attribute is being set.</p>

<li>
<p>If the attribute is being set on a <code>Document</code> node, let
Expand All @@ -9244,8 +9249,9 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0

<li>
<p>Append all the <var title="">new children</var> nodes to the node
whose <code title=dom-innerHTML-XML>innerHTML</code> attribute is being
set, preserving their order.</p>
whose <code title=dom-innerHTML-XML><a
href="#innerhtml1">innerHTML</a></code> attribute is being set,
preserving their order.</p>
</ol>

<hr>
Expand Down Expand Up @@ -26194,7 +26200,8 @@ function AddCloud(data, x, y) { ... }</pre>
href="#without">without script</a>, or if the <code><a
href="#script1">script</a></code> element was created by an <span>XML
parser</span> that itself was created as part of the processing of the
<code title=dom-innerHTML-XML>innerHTML</code> attribute's setter<!--
<code title=dom-innerHTML-XML><a href="#innerhtml1">innerHTML</a></code>
attribute's setter<!--
no need to worry about the innerHTML-HTML case, as the HTML parser
handles that for us, and outerHTML-XML doesn't work-->,
or if the user agent does not <a href="#support">support the scripting
Expand Down
12 changes: 6 additions & 6 deletions source
Expand Up @@ -7096,12 +7096,12 @@ http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20HTML%3E%0

<h4>Dynamic markup insertion in XML</h4>

<p>In an XML context, the <code
title="dom-innerHTML-XML">innerHTML</code> DOM attribute on
<code>HTMLElement</code>s must return a string in the form of an <a
href="http://www.w3.org/TR/xml/#wf-entities">internal general parsed
entity</a>, and on <code>HTMLDocument</code>s must return a string
in the form of a <a
<p>In an XML context, the <dfn
title="dom-innerHTML-XML"><code>innerHTML</code></dfn> DOM attribute
on <code>HTMLElement</code>s must return a string in the form of an
<a href="http://www.w3.org/TR/xml/#wf-entities">internal general
parsed entity</a>, and on <code>HTMLDocument</code>s must return a
string in the form of a <a
href="http://www.w3.org/TR/xml/#sec-well-formed">document
entity</a>. The string returned must be XML namespace-well-formed
and must be an isomorphic serialization of all of that node's child
Expand Down

0 comments on commit 6b129c6

Please sign in to comment.