@@ -1046,24 +1046,10 @@ <h1>The <code>DOMParser</code> interface</h1>
1046
1046
created < a title ="concept-document " data-spec ="DOM4 " class ="externalDFN "> document</ a >
1047
1047
and terminate these steps.
1048
1048
1049
+ <!-- This seemed like a good idea, but isn't web compatible, unfortunately.
1049
1050
<li>Otherwise, throw a
1050
1051
<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>. -->
1067
1053
1068
1054
< li > Let < var > document</ var > be a newly-created
1069
1055
< code > < a data-spec ="DOM4 " title ="xmldocument " class ="externalDFN "> XMLDocument</ a > </ code > .
@@ -1076,7 +1062,7 @@ <h1>The <code>DOMParser</code> interface</h1>
1076
1062
< a title ="concept-element-namespace " data-spec ="DOM4 " class ="externalDFN "> namespace</ a >
1077
1063
set to
1078
1064
"< 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 -->
1080
1066
< p > At this point user agents may
1081
1067
< a data-spec ="DOM4 " title ="concept-node-append " class ="externalDFN "> append</ a > nodes
1082
1068
to < var > root</ var > , for example to describe the nature of the
@@ -1086,7 +1072,6 @@ <h1>The <code>DOMParser</code> interface</h1>
1086
1072
< var > root</ var > to < var > document</ var > .
1087
1073
1088
1074
< li > Return < var > document</ var > .
1089
- -->
1090
1075
</ ol >
1091
1076
</ dl >
1092
1077
0 commit comments