Skip to content

Commit 7f9e5ca

Browse files
Revert changelist 23 (0890bba5b66a) -- sigh.
1 parent ec8be27 commit 7f9e5ca

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

index.html

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,24 +1046,10 @@ <h1>The <code>DOMParser</code> interface</h1>
10461046
created <a title="concept-document" data-spec="DOM4" class="externalDFN">document</a>
10471047
and terminate these steps.
10481048

1049+
<!-- This seemed like a good idea, but isn't web compatible, unfortunately.
10491050
<li>Otherwise, throw a
10501051
<code><a data-spec="DOM4" title="domexception" class="externalDFN">DOMException</a></code>
1051-
with name <code>SyntaxError</code>.
1052-
1053-
<p class=note>Some UAs do not throw an exception, but rather return a minimal
1054-
well-formed XML document that describes the error. In these cases, the error
1055-
document's root element will be named <code>parsererror</code> and its namespace
1056-
will be set to "<code>http://www.mozilla.org/newlayout/xml/parsererror.xml</code>".
1057-
1058-
<!--
1059-
It does not make sense to pave the cow paths by standardizing the
1060-
mozilla error handling approach, when there is clear objection to that approach
1061-
from web developers who expect success to load the document they want, rather
1062-
than an error document. Browsers are reluctant to change behavior due to web
1063-
compatibility, but IE has thrown in these cases for multiple releases now without
1064-
any significant compatibility impact, and thus it seems feasable to spec the
1065-
simpler and developer-expected behavior here.
1066-
appropriate behavior here.
1052+
with name <code>SyntaxError</code>. -->
10671053

10681054
<li>Let <var>document</var> be a newly-created
10691055
<code><a data-spec="DOM4" title="xmldocument" class="externalDFN">XMLDocument</a></code>.
@@ -1076,7 +1062,7 @@ <h1>The <code>DOMParser</code> interface</h1>
10761062
<a title="concept-element-namespace" data-spec="DOM4" class="externalDFN">namespace</a>
10771063
set to
10781064
"<code>http://www.mozilla.org/newlayout/xml/parsererror.xml</code>".
1079-
<!-- see https://bugzilla.mozilla.org/show_bug.cgi?id=45566 --><!--
1065+
<!-- see https://bugzilla.mozilla.org/show_bug.cgi?id=45566 -->
10801066
<p>At this point user agents may
10811067
<a data-spec="DOM4" title="concept-node-append" class="externalDFN">append</a> nodes
10821068
to <var>root</var>, for example to describe the nature of the
@@ -1086,7 +1072,6 @@ <h1>The <code>DOMParser</code> interface</h1>
10861072
<var>root</var> to <var>document</var>.
10871073

10881074
<li>Return <var>document</var>.
1089-
-->
10901075
</ol>
10911076
</dl>
10921077

0 commit comments

Comments
 (0)