Skip to content

Commit ab8d1ac

Browse files
saschanazmarcoscaceres
authored andcommitted
Fix ReSpec warnings (#39)
* fix respec warnings * fix html syntax error
1 parent d620191 commit ab8d1ac

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

index.html

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h2>Extensibility</h2>
118118
This specification concerns itself with defining various APIs for both parsing and serializing a
119119
DOM.
120120

121-
<div class=example>For example: the <a for="Element">innerHTML</a> API is a common way to both
121+
<div class=example>For example: the <a data-link-for="Element">innerHTML</a> API is a common way to both
122122
parse and serialize a DOM (it does both). If a particular <a>Node</a>, has the following in-memory
123123
DOM:
124124
<pre>
@@ -134,7 +134,7 @@ <h2>Extensibility</h2>
134134
</pre>
135135
And the <code>HTMLDivElement</code> node is stored in a variable <code><var>myDiv</var></code>,
136136
then to serialize <code><var>myDiv</var></code>'s children simply <em>get</em> (read) the
137-
<a>Element</a>'s <a for="Element">innerHTML</a> property (this triggers the serialization):
137+
<a>Element</a>'s <a data-link-for="Element">innerHTML</a> property (this triggers the serialization):
138138

139139
<pre class=javascript>
140140
var serializedChildren = myDiv.innerHTML;
@@ -143,7 +143,7 @@ <h2>Extensibility</h2>
143143
</pre>
144144

145145
<p>To parse new children for <code><var>myDiv</var></code> from a string (replacing its existing
146-
children), simply <em>set</em> the <a for="Element">innerHTML</a> property (this triggers
146+
children), simply <em>set</em> the <a data-link-for="Element">innerHTML</a> property (this triggers
147147
parsing of the assigned string):
148148

149149
<pre class=javascript>
@@ -221,10 +221,10 @@ <h2>Extensibility</h2>
221221
</pre>
222222

223223
<dl class=domintro>
224-
<dt><var>domparser</var> = new <a for=DOMParser>DOMParser</a> ()</var>
224+
<dt><var>domparser</var> = new <a data-link-for=DOMParser>DOMParser</a> ()</var>
225225
<dd>Constructs a new DOMParser object.
226226

227-
<dt><var>document</var> = <var>domparser</var> . <a for=DOMParser>parseFromString</a> ( <var>str</var>, <var>type</var> )
227+
<dt><var>document</var> = <var>domparser</var> . <a data-link-for=DOMParser>parseFromString</a> ( <var>str</var>, <var>type</var> )
228228
<dd>Parse <var>str</var> using a parser that matches <var>type</var>'s supported MIME types
229229
(either XML or HTML), and return a <a>Document</a> object contained the parsed content if
230230
successful. If not successful, returns a <a>Document</a> describing the error.
@@ -235,11 +235,11 @@ <h2>Extensibility</h2>
235235
<p>The <dfn><code>DOMParser</code></dfn> constructor must return a new <a>DOMParser</a> object.
236236

237237
<p>The
238-
<code><dfn for=DOMParser>parseFromString</dfn>(<var>str</var>, <var>type</var>)</code></dfn>
238+
<code><dfn data-dfn-for=DOMParser>parseFromString</dfn>(<var>str</var>, <var>type</var>)</code></dfn>
239239
method must run these steps, depending on <var>type</var>:
240240

241241
<dl class=switch>
242-
<dt>"<dfn for=SupportedType><code>text/html</code></dfn>"
242+
<dt>"<dfn data-dfn-for=SupportedType><code>text/html</code></dfn>"
243243
<dd>Parse <var>str</var> with an <code><a>HTML parser</a></code>, and return the newly created
244244
<a>Document</a>.
245245

@@ -250,10 +250,10 @@ <h2>Extensibility</h2>
250250

251251
<p class=note><code><a>script</a></code> elements get marked unexecutable and the contents of
252252
<code><a>noscript</a></code> get parsed as markup.
253-
<dt>"<dfn for=SupportedType><code>text/xml</code></dfn>"
254-
<dt>"<dfn for=SupportedType><code>application/xml</code></dfn>"
255-
<dt>"<dfn for=SupportedType><code>application/xhtml+xml</code></dfn>"
256-
<dt>"<dfn for=SupportedType><code>image/svg+xml</code></dfn>"
253+
<dt>"<dfn data-dfn-for=SupportedType><code>text/xml</code></dfn>"
254+
<dt>"<dfn data-dfn-for=SupportedType><code>application/xml</code></dfn>"
255+
<dt>"<dfn data-dfn-for=SupportedType><code>application/xhtml+xml</code></dfn>"
256+
<dt>"<dfn data-dfn-for=SupportedType><code>image/svg+xml</code></dfn>"
257257
<dd>
258258
<ol>
259259
<li>Parse <var>str</var> with a namespace-enabled <code><a>XML parser</a></code>.
@@ -299,18 +299,18 @@ <h2>Extensibility</h2>
299299
</pre>
300300

301301
<dl class=domintro>
302-
<dt><var>xmlserializer</var> = new <a for=XMLSerializer>XMLSerializer</a> ()</var>
302+
<dt><var>xmlserializer</var> = new <a data-link-for=XMLSerializer>XMLSerializer</a> ()</var>
303303
<dd>Constructs a new XMLSerializer object.
304304

305-
<dt><var>string</var> = <var>xmlserializer</var> . <a for=XMLSerializer>serializeToString</a> ( <var>root</var> )
305+
<dt><var>string</var> = <var>xmlserializer</var> . <a data-link-for=XMLSerializer>serializeToString</a> ( <var>root</var> )
306306
<dd>Serializes <var>root</var> into a string using an XML serialization. Throws a
307307
<a>TypeError</a> exception if <var>root</var> is not a <a>Node</a> or an <a>Attr</a> object.
308308
</dl>
309309

310310
<p>The <dfn><code>XMLSerializer</code></dfn>() constructor must return a new <a>XMLSerializer</a>
311311
object.
312312

313-
<p>The <dfn for="XMLSerializer"><code>serializeToString</code></dfn>(<var>root</var>) method must
313+
<p>The <dfn data-dfn-for="XMLSerializer"><code>serializeToString</code></dfn>(<var>root</var>) method must
314314
produce an <a>XML serialization</a> of <var>root</var> passing a value of <code>false</code> for
315315
the <a><var>require well-formed</var></a> parameter, and return the result.
316316

@@ -328,11 +328,11 @@ <h2>Extensibility</h2>
328328

329329
<!-- innerHTML -->
330330

331-
<p>The <dfn for="Element"><code>innerHTML</code></dfn> IDL attribute represents the markup of the
331+
<p>The <dfn data-dfn-for="Element"><code>innerHTML</code></dfn> IDL attribute represents the markup of the
332332
<code><a>Element</a></code>'s contents.
333333

334334
<dl class=domintro>
335-
<dt><var>element</var> . <a for="Element">innerHTML</a> [ = <var>value</var> ]
335+
<dt><var>element</var> . <a data-link-for="Element">innerHTML</a> [ = <var>value</var> ]
336336
<dd>Returns a fragment of HTML or XML that represents the element's contents.
337337

338338
<p>Can be set, to replace the contents of the element with nodes parsed from the given string.
@@ -358,7 +358,7 @@ <h2>Extensibility</h2>
358358
<a>context object</a> be the <code><a>template</a></code>'s <a>template contents</a> (a
359359
<code><a>DocumentFragment</a></code>).
360360

361-
<p class=note>Setting <a for="Element">innerHTML</a> on a <a>template</a> element will replace
361+
<p class=note>Setting <a data-link-for="Element">innerHTML</a> on a <a>template</a> element will replace
362362
all the nodes in its <a>template contents</a>
363363
(<a>template</a>.<a data-lt="template contents">content</a>) rather than its <a>children</a>.</p>
364364

@@ -367,11 +367,11 @@ <h2>Extensibility</h2>
367367

368368
<!-- outerHTML -->
369369

370-
<p>The <dfn for="Element"><code>outerHTML</code></dfn> IDL attribute represents the markup of the
370+
<p>The <dfn data-dfn-for="Element"><code>outerHTML</code></dfn> IDL attribute represents the markup of the
371371
<code><a>Element</a></code> and its contents.
372372

373373
<dl class=domintro>
374-
<dt><var>element</var> . <a for="Element">outerHTML</a> [ = <var>value</var> ]
374+
<dt><var>element</var> . <a data-link-for="Element">outerHTML</a> [ = <var>value</var> ]
375375
<dd>Returns a fragment of HTML or XML that represents the element and its contents.
376376

377377
<p>Can be set, to replace the element with nodes parsed from the given string.
@@ -421,7 +421,7 @@ <h2>Extensibility</h2>
421421
<!-- insertAdjacentHTML -->
422422

423423
<dl class=domintro>
424-
<dt><var>element</var> . <a for="Element">insertAdjacentHTML</a> ( <var>position</var>, <var>text</var> )
424+
<dt><var>element</var> . <a data-link-for="Element">insertAdjacentHTML</a> ( <var>position</var>, <var>text</var> )
425425
<dd>Parses the given string <var>text</var> as HTML or XML and inserts the resulting nodes into
426426
the tree in the position given by the <var>position</var> argument, as follows:
427427

@@ -449,7 +449,7 @@ <h2>Extensibility</h2>
449449
</dl>
450450

451451
<p>The
452-
<dfn for="Element" data-lt="insertAdjacentHTML"><code>insertAdjacentHTML(<var>position</var>, <var>text</var>)</code></dfn>
452+
<dfn data-dfn-for="Element" data-lt="insertAdjacentHTML"><code>insertAdjacentHTML(<var>position</var>, <var>text</var>)</code></dfn>
453453
method must run these steps:
454454

455455
<ol>
@@ -524,10 +524,10 @@ <h2>Extensibility</h2>
524524

525525
<p class=note>No special handling for <code><a>template</a></code> elements is included in the
526526
above "<code>afterbegin</code>" and "<code>beforeend</code>" cases. As with other direct
527-
<a>Node</a>-manipulation APIs (and unlike <a for="Element">innerHTML</a>),
528-
<a for="Element">insertAdjacentHTML</a> does not include any special handling for
527+
<a>Node</a>-manipulation APIs (and unlike <a data-link-for="Element">innerHTML</a>),
528+
<a data-link-for="Element">insertAdjacentHTML</a> does not include any special handling for
529529
<code><a>template</a></code> elements. In most cases you will wish to use
530-
<a>template</a>.<a data-lt="template contents">content</a>.<a for="Element">insertAdjacentHTML</a>
530+
<a>template</a>.<a data-lt="template contents">content</a>.<a data-link-for="Element">insertAdjacentHTML</a>
531531
instead of directly manipulating the <a>child nodes</a> of a <code><a>template</a></code>
532532
element.</p>
533533

@@ -542,13 +542,13 @@ <h2>Extensibility</h2>
542542
</pre>
543543

544544
<dl class=domintro>
545-
<dt><var>docFragment</var> = <var>range</var> . <a for="Range">createContextualFragment</a> ( <var>fragment</var> )
545+
<dt><var>docFragment</var> = <var>range</var> . <a data-link-for="Range">createContextualFragment</a> ( <var>fragment</var> )
546546
<dd>Returns a <code><a>DocumentFragment</a></code>, created from the markup string
547547
<var>fragment</var> using <var>range</var>'s start node as the context in which
548548
<var>fragment</var> is parsed.
549549
</dl>
550550

551-
<p>The <dfn for="Range"><code>createContextualFragment(<var>fragment</var>)</code></dfn> method
551+
<p>The <dfn data-dfn-for="Range" data-lt="createContextualFragment"><code>createContextualFragment(<var>fragment</var>)</code></dfn> method
552552
must run these steps:
553553

554554
<ol>
@@ -566,7 +566,7 @@ <h2>Extensibility</h2>
566566

567567
<dt><code><a>Text</a></code>
568568
<dt><code><a>Comment</a></code>
569-
<dd><var>node</var>'s <a>parent element</a>
569+
<dd><var>node</var>'s <a data-cite="DOM#parent-element">parent element</a>
570570

571571
<dt><code><a>DocumentType</a></code>
572572
<dt><code><a>ProcessingInstruction</a></code>
@@ -617,20 +617,20 @@ <h2>Extensibility</h2>
617617
</pre>
618618
619619
<dl class=domintro>
620-
<dt><var>text</var> . <a for="Text">serializeAsCDATA</a> [ = <var>value</var> ]
620+
<dt><var>text</var> . <a data-link-for="Text">serializeAsCDATA</a> [ = <var>value</var> ]
621621
<dd>Controls whether, in XML, this node is serialized as a CDATA section.
622622
</dl>
623623
624624
<p><code><a>Text</a></code> nodes have an additional associated flag, the
625625
<dfn>serialize as CDATA flag</dfn>.
626626
627-
<p>The <dfn for="Text"><code>serializeAsCDATA</code></dfn> attribute must return true if the
627+
<p>The <dfn data-dfn-for="Text"><code>serializeAsCDATA</code></dfn> attribute must return true if the
628628
<a>context object</a> has its <a>serialize as CDATA flag</a> set, or false otherwise.
629629
630-
<p>Setting the <a for="Text">serializeAsCDATA</a> attribute must, if the new value is true, set
630+
<p>Setting the <a data-link-for="Text">serializeAsCDATA</a> attribute must, if the new value is true, set
631631
the <a>context object</a>'s <a>serialize as CDATA flag</a>, or unset it otherwise.
632632
633-
</section><!-- end Extensions to the Text interface -->
633+
</section>--><!-- end Extensions to the Text interface -->
634634

635635
</section><!-- end APIs for DOM Parsing and Serializing -->
636636

@@ -1848,8 +1848,8 @@ <h2>Acknowledgements</h2>
18481848
and Boris Zbarsky,
18491849
for their useful comments.
18501850

1851-
<p>Special thanks to Ian Hickson for first defining the <a for="Element">innerHTML</a> and <a for="Element">outerHTML</a>
1852-
attributes, and the <a for="Element">insertAdjacentHTML</a> method in [[HTML5]] and his useful comments.
1851+
<p>Special thanks to Ian Hickson for first defining the <a data-link-for="Element">innerHTML</a> and <a data-link-for="Element">outerHTML</a>
1852+
attributes, and the <a data-link-for="Element">insertAdjacentHTML</a> method in [[HTML5]] and his useful comments.
18531853
</section>
18541854

18551855
</body>

respecConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ var respecConfig = {
1010
//format: "markdown",
1111
shortName: "DOM-Parsing",
1212
wg: ["Web Platform Working Group"],
13-
wgURI: ["http://www.w3.org/WebPlatform/WG/"],
13+
wgURI: ["https://www.w3.org/WebPlatform/WG/"],
1414
license: "w3c-software-doc",
1515
wgPublicList: "www-dom",
16-
wgPatentURI: ["http://www.w3.org/2004/01/pp-impl/83482/status"],
16+
wgPatentURI: ["https://www.w3.org/2004/01/pp-impl/83482/status"],
1717
subjectPrefix: "DOM-Parsing",
1818
otherLinks: [{
1919
key: "Test Suites", data: [

0 commit comments

Comments
 (0)