File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -326,6 +326,12 @@ <h2>Serializing</h2>
326
326
elements in the < a title ="html-ns "> HTML namespace</ a > that contain no child nodes are serialized
327
327
with an explicit begin and end tag rather than using the self-closing tag syntax [[XML10]].
328
328
329
+ < p class ="note "> Per [[DOM4]], < a title ="interface-attr " data-spec ="DOM4 " class ="externalDFN "> Attr</ a >
330
+ objects are not < a title ="node " data-spec ="DOM4 " class ="externalDFN "> Node</ a > s, and thus cannot
331
+ be serialized by the < a title ="concept-xml-serialization-algorithm "> XML serialization algorithm</ a > .
332
+ An attempt to serialize an < a title ="interface-attr " data-spec ="DOM4 " class ="externalDFN "> Attr</ a >
333
+ object will result in a TypeError exception [[WEBIDL]].
334
+
329
335
< p > To run the < dfn title ="concept-xml-serialization-algorithm "> XML serialization algorithm</ dfn > on
330
336
a < var > node</ var > given a < a title ="concept-context-namespace "> context namespace</ a >
331
337
< var > namespace</ var > , a < a title ="concept-namespace-prefix-map "> namespace prefix map</ a >
@@ -678,12 +684,6 @@ <h2>Serializing</h2>
678
684
< li > Return < var > markup</ var > .
679
685
</ ol >
680
686
681
- < dt > < code > < a title ="interface-attr " data-spec ="DOM4 " class ="externalDFN "> Attr</ a > </ code >
682
- < dd >
683
- < p > Return the empty string.
684
- < p class ="note "> Attr objects do not make sense to serialize independently of the
685
- < a title ="element " data-spec ="DOM4 " class ="externalDFN "> element</ a > to which
686
- they belong.
687
687
</ dl >
688
688
689
689
< p > To < dfn title ="concept-serialize-doctype "> produce a DocumentType serialization</ dfn > of a
You can’t perform that action at this time.
0 commit comments