Skip to content

Commit d74cfdb

Browse files
Fix bugs found by HTML validator
1 parent 93cfaf4 commit d74cfdb

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

LCWD-DOM-Parsing-20140501.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,13 +1336,14 @@ <h3 id="h3_serializing" role="heading" aria-level="2"><span class="secno">4.2 </
13361336
<code><a title="dom-element-attributes" class="externalDFN" href="http://www.w3.org/TR/dom/#dom-element-attributes">attributes</a></code>,
13371337
in the order they are specified in the <var>element</var>'s
13381338
<a title="concept-element-attributes" class="externalDFN" href="http://www.w3.org/TR/dom/#concept-element-attributes">attribute list</a>:
1339-
<ol>
1339+
13401340
<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
13411341
into the <var>element prefixes list</var> and add or replace them in the <var>map</var>.
13421342
Only attributes in the <a title="xmlns-ns" class="internalDFN" href="#dfn-xmlns-ns">XMLNS namespace</a> are
13431343
considered (e.g., attributes made to look like namespace declarations via
13441344
<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>,
13451345
<em>"pretend-namespace"</em>)</code> are not included).</p></div>
1346+
<ol>
13461347
<li>Let <var>attribute namespace</var> be the <var>attr</var>'s
13471348
<code><a title="dom-attribute-namespaceuri" class="externalDFN" href="http://www.w3.org/TR/dom/#dom-attribute-namespaceuri">namespaceURI</a></code>
13481349
value.
@@ -1611,17 +1612,17 @@ <h3 id="h3_serializing" role="heading" aria-level="2"><span class="secno">4.2 </
16111612

16121613
<p>In any case, the returned
16131614
<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>
16151616
must be the <var>type</var> argument. Additionally, the
16161617
<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
16181619
the URL of the
16191620
<a title="active-document" class="externalDFN" href="http://www.w3.org/TR/html5/single-page.html#active-document">active document</a>, a
16201621
<a title="location" class="externalDFN" href="http://www.w3.org/TR/html5/single-page.html#location">location</a> value of <code>null</code>.
16211622

16221623
<div class="note"><div class="note-title" id="h_note_9" role="heading" aria-level="3"><span>Note</span></div><p>The returned
16231624
<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
16251626
the default, UTF-8.
16261627
</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>
16271628
</section>

index.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -811,14 +811,15 @@ <h2>Serializing</h2>
811811
<code><a title="dom-element-attributes" data-spec="DOM4" class="externalDFN">attributes</a></code>,
812812
in the order they are specified in the <var>element</var>'s
813813
<a title="concept-element-attributes" data-spec="DOM4" class="externalDFN">attribute list</a>:
814-
<ol>
814+
815815
<p class="note">The following conditional steps add namespace prefixes
816816
into the <var>element prefixes list</var> and add or replace them in the <var>map</var>.
817817
Only attributes in the <a title="xmlns-ns">XMLNS namespace</a> are
818818
considered (e.g., attributes made to look like namespace declarations via
819819
<code><a title="dom-element-setattribute" data-spec="DOM4"
820820
class="externalDFN">setAttribute</a>(<em>"xmlns:pretend-prefix"</em>,
821821
<em>"pretend-namespace"</em>)</code> are not included).</p>
822+
<ol>
822823
<li>Let <var>attribute namespace</var> be the <var>attr</var>'s
823824
<code><a title="dom-attribute-namespaceuri" data-spec="DOM4" class="externalDFN">namespaceURI</a></code>
824825
value.
@@ -1086,17 +1087,17 @@ <h1>The <code>DOMParser</code> interface</h1>
10861087

10871088
<p>In any case, the returned
10881089
<a title="concept-document" data-spec="DOM4" class="externalDFN">document</a>'s
1089-
<a title="concept-document"-content-type data-spec="DOM4" class="externalDFN">content type</a>
1090+
<a title="concept-document-content-type" data-spec="DOM4" class="externalDFN">content type</a>
10901091
must be the <var>type</var> argument. Additionally, the
10911092
<a title="concept-document" data-spec="DOM4" class="externalDFN">document</a> must have a
1092-
<a title="concept-document"-url data-spec="DOM4" class="externalDFN">URL</a> value equal to
1093+
<a title="concept-document-url" data-spec="DOM4" class="externalDFN">URL</a> value equal to
10931094
the URL of the
10941095
<a title="active-document" data-spec="HTML5" class="externalDFN">active document</a>, a
10951096
<a title="location" data-spec="HTML5" class="externalDFN">location</a> value of <code>null</code>.
10961097

10971098
<p class=note>The returned
10981099
<a title="concept-document" data-spec="DOM4" class="externalDFN">document</a>'s
1099-
<a title="concept-document"-encoding data-spec="DOM4" class="externalDFN">encoding</a> is
1100+
<a title="concept-document-encoding" data-spec="DOM4" class="externalDFN">encoding</a> is
11001101
the default, UTF-8.
11011102
</dd>
11021103
</dl>

0 commit comments

Comments
 (0)