Skip to content

Commit a881816

Browse files
Fix bug 25244: What do Attr objects serialize?
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25244 Also changed some references to point to interface rather than IDL definitions.
1 parent 042912d commit a881816

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

index.html

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ <h2>Serializing</h2>
334334
appropriate steps, depending on <var>node</var>'s interface:</p>
335335

336336
<dl class=switch>
337-
<dt><code><a title="element" data-spec="DOM4" class="externalDFN">Element</a></code>
337+
<dt><code><a title="interface-element" data-spec="DOM4" class="externalDFN">Element</a></code>
338338
<dd>
339339
<p>Run the following algorithm:
340340
<ol>
@@ -540,7 +540,7 @@ <h2>Serializing</h2>
540540
<li>Return the value of <var>markup</var>.
541541
</ol>
542542

543-
<dt><code><a title="document" data-spec="DOM4" class="externalDFN">Document</a></code>
543+
<dt><code><a title="interface-document" data-spec="DOM4" class="externalDFN">Document</a></code>
544544
<dd>
545545
<p>If the <a title="concept-well-formed">require well-formed</a> flag is set (its value is
546546
<code>true</code>), and this <var>node</var> has no
@@ -570,7 +570,7 @@ <h2>Serializing</h2>
570570
<li>Return the value of <var>serialized document</var>.
571571
</ol>
572572

573-
<dt><code><a title="comment" data-spec="DOM4" class="externalDFN">Comment</a></code>
573+
<dt><code><a title="interface-comment" data-spec="DOM4" class="externalDFN">Comment</a></code>
574574
<dd>
575575
<p>If the <a title="concept-well-formed">require well-formed</a> flag is set (its value is
576576
<code>true</code>), and <var>node</var>'s
@@ -600,7 +600,7 @@ <h2>Serializing</h2>
600600
<a title="xml-document" data-spec="DOM4" class="externalDFN">XML document</a>.
601601
-->
602602

603-
<dt><code><a title="text" data-spec="DOM4" class="externalDFN">Text</a></code>
603+
<dt><code><a title="interface-text" data-spec="DOM4" class="externalDFN">Text</a></code>
604604
<dd><ol>
605605
<li>If the <a title="concept-well-formed">require well-formed</a> flag is set (its value is
606606
<code>true</code>), and <var>node</var>'s
@@ -624,7 +624,7 @@ <h2>Serializing</h2>
624624

625625
<li>Return <var>data</var>.
626626
</ol>
627-
<dt><code><a title="documentfragment" data-spec="DOM4" class="externalDFN">DocumentFragment</a></code>
627+
<dt><code><a title="interface-documentfragment" data-spec="DOM4" class="externalDFN">DocumentFragment</a></code>
628628
<dd><ol>
629629
<li>Let <var>markup</var> the empty string.
630630

@@ -639,12 +639,13 @@ <h2>Serializing</h2>
639639
to <var>markup</var>.
640640
<li>Return <var>markup</var>.
641641
</ol>
642-
<dt><code><a title="documenttype" data-spec="DOM4" class="externalDFN">DocumentType</a></code>
642+
643+
<dt><code><a title="interface-documenttype" data-spec="DOM4" class="externalDFN">DocumentType</a></code>
643644
<dd>Run the steps to <a title="concept-serialize-doctype">produce a DocumentType
644645
serialization</a> of <var>node</var> given the <a title="concept-well-formed">require well-formed</a>
645646
flag, and return the string this produced.
646647

647-
<dt><code><a title="processinginstruction" data-spec="DOM4" class="externalDFN">ProcessingInstruction</a></code>
648+
<dt><code><a title="interface-processinginstruction" data-spec="DOM4" class="externalDFN">ProcessingInstruction</a></code>
648649
<dd><ol>
649650
<li>If the <a title="concept-well-formed">require well-formed</a> flag is set (its value is
650651
<code>true</code>), and <var>node</var>'s
@@ -676,6 +677,13 @@ <h2>Serializing</h2>
676677
</ol>
677678
<li>Return <var>markup</var>.
678679
</ol>
680+
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.
679687
</dl>
680688

681689
<p>To <dfn title="concept-serialize-doctype">produce a DocumentType serialization</dfn> of a

0 commit comments

Comments
 (0)