Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit 20f8d77

Browse files
committed
Mention whitespace normalization in attribute values. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22008
1 parent bdff30f commit 20f8d77

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

Overview.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,11 @@ <h3 id="syntax-misc"><span class="secno">2.4 </span>Miscellaneous</h3>
433433

434434
<li><p>Attributes omitting quotes for the value are allowed to use a larger
435435
set of characters compared to HTML4.
436+
437+
<li><p>The HTML parser does not do any normalization of whitespace in attribute values; for instance, leading and trailing whitespace in the
438+
<code class="external" title="attr-id"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-id-attribute">id</a></code> attribute is not ignored (and thus now invalid), and newline characters can be used in the
439+
<code class="external" title="attr-input-value"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#attr-input-value">value</a></code> attribute of the <code class="external"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element">input</a></code> element without using character
440+
references.
436441

437442
<li><p>The <code>optgroup</code> end tag is now optional.
438443

Overview.src.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@ <h3 id="syntax-misc">Miscellaneous</h3>
405405

406406
<li><p>Attributes omitting quotes for the value are allowed to use a larger
407407
set of characters compared to HTML4.
408+
409+
<li><p>The HTML parser does not do any normalization of whitespace in attribute values; for instance, leading and trailing whitespace in the
410+
<code data-anolis-spec=html title=attr-id>id</code> attribute is not ignored (and thus now invalid), and newline characters can be used in the
411+
<code data-anolis-spec=html title=attr-input-value>value</code> attribute of the <code data-anolis-spec=html>input</code> element without using character
412+
references.
408413

409414
<li><p>The <code>optgroup</code> end tag is now optional.
410415

Overview.whatwg.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,11 @@ <h3 id="syntax-misc"><span class="secno">2.4 </span>Miscellaneous</h3>
378378

379379
<li><p>Attributes omitting quotes for the value are allowed to use a larger
380380
set of characters compared to HTML4.
381+
382+
<li><p>The HTML parser does not do any normalization of whitespace in attribute values; for instance, leading and trailing whitespace in the
383+
<code class="external" title="attr-id"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-id-attribute">id</a></code> attribute is not ignored (and thus now invalid), and newline characters can be used in the
384+
<code class="external" title="attr-input-value"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#attr-input-value">value</a></code> attribute of the <code class="external"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-input-element.html#the-input-element">input</a></code> element without using character
385+
references.
381386

382387
<li><p>The <code>optgroup</code> end tag is now optional.
383388

0 commit comments

Comments
 (0)