Skip to content

Commit

Permalink
Use XML parser hooks from HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Sep 5, 2014
1 parent 7281399 commit c837ac6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
17 changes: 8 additions & 9 deletions Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p><a class="logo" href="//www.whatwg.org/"><img alt="WHATWG" height="100" src="//resources.whatwg.org/logo-xhr.svg" width="100"></a>
<h1 id="xmlhttprequest-ls">XMLHttpRequest</h1>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-12-august-2014">Living Standard — Last Updated 12 August 2014</h2>
<h2 class="no-num no-toc" id="living-standard-—-last-updated-5-september-2014">Living Standard — Last Updated 5 September 2014</h2>

<dl>
<dt>This Version:
Expand Down Expand Up @@ -36,7 +36,7 @@ <h2 class="no-num no-toc" id="living-standard-—-last-updated-12-august-2014">L
<p class="copyright"><a href="http://creativecommons.org/publicdomain/zero/1.0/" rel="license"><img alt="CC0" src="http://i.creativecommons.org/p/zero/1.0/80x15.png"></a>
To the extent possible under law, the editor has waived all copyright and
related or neighboring rights to this work. In addition, as of
12 August 2014, the editor has made this specification available
5 September 2014, the editor has made this specification available
under the
<a href="http://www.openwebfoundation.org/legal/the-owf-1-0-agreements/owfa-1-0" rel="license">Open Web Foundation Agreement Version 1.0</a>,
which is available at
Expand Down Expand Up @@ -1532,15 +1532,14 @@ <h4 id="response-body"><span class="secno">4.6.6 </span>Response body</h4>
<li>
<p>Otherwise, let <var title="">document</var> be a
<a class="external" href="http://dom.spec.whatwg.org/#concept-document" title="concept-document">document</a>
that represents the result of parsing the
<var>bytes</var> following the rules set forth in the
XML specifications. If that fails (unsupported character encoding,
that represents the result of running the <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/xhtml.html#xml-parser">XML parser</a>
with <a class="external" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/xhtml.html#xml-scripting-support-disabled">XML scripting support disabled</a> on
<var>bytes</var>. If that fails (unsupported character encoding,
namespace well-formedness error, etc.), return null.
<a href="#refsXML">[XML]</a> <a href="#refsXMLNS">[XMLNS]</a>
<a href="#refsHTML">[HTML]</a>

<p class="note">Scripts in the resulting document tree will not be
executed, resources referenced will not be loaded and no associated XSLT
will be applied. <!-- XXX more formally?! -->
<p class="note">Resources referenced will not be loaded and no associated XSLT will be
applied. <!-- XXX more formally?! -->

<li><p>If <var>charset</var> is null, set <var>charset</var> to
<a class="external" href="http://encoding.spec.whatwg.org/#utf-8">utf-8</a>.
Expand Down
13 changes: 6 additions & 7 deletions Overview.src.html
Original file line number Diff line number Diff line change
Expand Up @@ -1485,15 +1485,14 @@ <h4>Response body</h4>
<li>
<p>Otherwise, let <var title>document</var> be a
<span data-anolis-spec=dom title=concept-document>document</span>
that represents the result of parsing the
<var>bytes</var> following the rules set forth in the
XML specifications. If that fails (unsupported character encoding,
that represents the result of running the <span data-anolis-spec=html>XML parser</span>
with <span data-anolis-spec=html>XML scripting support disabled</span> on
<var>bytes</var>. If that fails (unsupported character encoding,
namespace well-formedness error, etc.), return null.
<span data-anolis-ref>XML</span> <span data-anolis-ref>XMLNS</span>
<span data-anolis-ref>HTML</span>

<p class=note>Scripts in the resulting document tree will not be
executed, resources referenced will not be loaded and no associated XSLT
will be applied. <!-- XXX more formally?! -->
<p class=note>Resources referenced will not be loaded and no associated XSLT will be
applied. <!-- XXX more formally?! -->

<li><p>If <var>charset</var> is null, set <var>charset</var> to
<span data-anolis-spec=encoding>utf-8</span>.
Expand Down

0 comments on commit c837ac6

Please sign in to comment.