@@ -1336,13 +1336,14 @@ <h3 id="h3_serializing" role="heading" aria-level="2"><span class="secno">4.2 </
1336
1336
< code > < a title ="dom-element-attributes " class ="externalDFN " href ="http://www.w3.org/TR/dom/#dom-element-attributes "> attributes</ a > </ code > ,
1337
1337
in the order they are specified in the < var > element</ var > 's
1338
1338
< a title ="concept-element-attributes " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-element-attributes "> attribute list</ a > :
1339
- < ol >
1339
+
1340
1340
< div class ="note "> < div class ="note-title " id ="h_note_5 " role ="heading " aria-level ="3 "> < span > Note</ span > </ div > < p > The following conditional steps add namespace prefixes
1341
1341
into the < var > element prefixes list</ var > and add or replace them in the < var > map</ var > .
1342
1342
Only attributes in the < a title ="xmlns-ns " class ="internalDFN " href ="#dfn-xmlns-ns "> XMLNS namespace</ a > are
1343
1343
considered (e.g., attributes made to look like namespace declarations via
1344
1344
< code > < a title ="dom-element-setattribute " class ="externalDFN " href ="http://www.w3.org/TR/dom/#dom-element-setattribute "> setAttribute</ a > (< em > "xmlns:pretend-prefix"</ em > ,
1345
1345
< em > "pretend-namespace"</ em > )</ code > are not included).</ p > </ div >
1346
+ < ol >
1346
1347
< li > Let < var > attribute namespace</ var > be the < var > attr</ var > 's
1347
1348
< code > < a title ="dom-attribute-namespaceuri " class ="externalDFN " href ="http://www.w3.org/TR/dom/#dom-attribute-namespaceuri "> namespaceURI</ a > </ code >
1348
1349
value.
@@ -1611,17 +1612,17 @@ <h3 id="h3_serializing" role="heading" aria-level="2"><span class="secno">4.2 </
1611
1612
1612
1613
< p > In any case, the returned
1613
1614
< a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document "> document</ a > 's
1614
- < a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document " -content-type =" "> content type</ a >
1615
+ < a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document-content-type "> content type</ a >
1615
1616
must be the < var > type</ var > argument. Additionally, the
1616
1617
< a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document "> document</ a > must have a
1617
- < a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document " -url =" "> URL</ a > value equal to
1618
+ < a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document-url "> URL</ a > value equal to
1618
1619
the URL of the
1619
1620
< a title ="active-document " class ="externalDFN " href ="http://www.w3.org/TR/html5/single-page.html#active-document "> active document</ a > , a
1620
1621
< a title ="location " class ="externalDFN " href ="http://www.w3.org/TR/html5/single-page.html#location "> location</ a > value of < code > null</ code > .
1621
1622
1622
1623
< div class ="note "> < div class ="note-title " id ="h_note_9 " role ="heading " aria-level ="3 "> < span > Note</ span > </ div > < p > The returned
1623
1624
< a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document "> document</ a > 's
1624
- < a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document " -encoding =" "> encoding</ a > is
1625
+ < a title ="concept-document " class ="externalDFN " href ="http://www.w3.org/TR/dom/#concept-document-encoding "> encoding</ a > is
1625
1626
the default, UTF-8.
1626
1627
</ p > </ div > < table class ="parameters "> < tbody > < tr > < th > Parameter</ th > < th > Type</ th > < th > Nullable</ th > < th > Optional</ th > < th > Description</ th > </ tr > < tr > < td class ="prmName "> str</ td > < td class ="prmType "> < code > DOMString</ code > </ td > < td class ="prmNullFalse "> < span role ="img " aria-label ="False "> ✘</ span > </ td > < td class ="prmOptFalse "> < span role ="img " aria-label ="False "> ✘</ span > </ td > < td class ="prmDesc "> </ td > </ tr > < tr > < td class ="prmName "> type</ td > < td class ="prmType "> < code > SupportedType</ code > </ td > < td class ="prmNullFalse "> < span role ="img " aria-label ="False "> ✘</ span > </ td > < td class ="prmOptFalse "> < span role ="img " aria-label ="False "> ✘</ span > </ td > < td class ="prmDesc "> </ td > </ tr > </ tbody > </ table > < div > < em > Return type: </ em > < code > Document</ code > </ div > </ dd > </ dl > </ section >
1627
1628
</ section >
0 commit comments