Skip to content
Permalink
Browse files

[e] (0) Clarify the handling of CRLF in HTML.

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=27413
Affected topics: HTML Syntax and Parsing

git-svn-id: https://svn.whatwg.org/webapps@8889 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Mar 5, 2015
1 parent 6dd7f19 commit 4fb1fd704451cf9ca4008ded53b080c3b85e99ce
Showing with 8 additions and 8 deletions.
  1. +3 −3 complete.html
  2. +3 −3 index
  3. +2 −2 source



<h4 id=the-u-element>4.5.22 The <dfn><code>u</code></dfn> element</h4><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27409" title="<u> element examples">27409</a></div>
<h4 id=the-u-element>4.5.22 The <dfn><code>u</code></dfn> element</h4>

<dl class=element><dt><a href=#concept-element-categories id=the-u-element:concept-element-categories>Categories</a>:<dd><a href=#flow-content-2 id=the-u-element:flow-content-2>Flow content</a>.<dd><a href=#phrasing-content-2 id=the-u-element:phrasing-content-2>Phrasing content</a>.<dd><a href=#palpable-content-2 id=the-u-element:palpable-content-2>Palpable content</a>.<dt><a href=#concept-element-contexts id=the-u-element:concept-element-contexts>Contexts in which this element can be used</a>:<dd>Where <a href=#phrasing-content-2 id=the-u-element:phrasing-content-2-2>phrasing content</a> is expected.<dt><a href=#concept-element-content-model id=the-u-element:concept-element-content-model>Content model</a>:<dd><a href=#phrasing-content-2 id=the-u-element:phrasing-content-2-3>Phrasing content</a>.<dt><a href=#concept-element-tag-omission id=the-u-element:concept-element-tag-omission>Tag omission in text/html</a>:<dd>Neither tag is omissible.<dt><a href=#concept-element-attributes id=the-u-element:concept-element-attributes>Content attributes</a>:<dd><a href=#global-attributes id=the-u-element:global-attributes>Global attributes</a><dt><a href=#concept-element-dom id=the-u-element:concept-element-dom>DOM interface</a>:<dd>Uses <code id=the-u-element:htmlelement><a href=#htmlelement>HTMLElement</a></code>.</dl>

script APIs such as <code id=preprocessing-the-input-stream:dom-document-write><a href=#dom-document-write>document.write()</a></code>.)</p>

<p>U+000D CARRIAGE RETURN (CR) characters and U+000A LINE FEED (LF) characters are treated
specially. All CR characters must be converted to LF characters, and any LF characters that
immediately follow a CR character must be ignored. Thus, newlines in HTML DOMs are represented by
specially. Any LF character that immediately follows a CR character must be ignored, and all CR
characters must then be converted to LF characters. Thus, newlines in HTML DOMs are represented by
LF characters, and there are never any CR characters in the input to the <a href=#tokenization id=preprocessing-the-input-stream:tokenization>tokenization</a>
stage.</p>

6 index



<h4 id=the-u-element>4.5.22 The <dfn><code>u</code></dfn> element</h4><div class=status><input onclick=toggleStatus(this) value=⋰ type=button><p class=bugs><strong>Spec bugs:</strong> <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=27409" title="<u> element examples">27409</a></div>
<h4 id=the-u-element>4.5.22 The <dfn><code>u</code></dfn> element</h4>

<dl class=element><dt><a href=#concept-element-categories id=the-u-element:concept-element-categories>Categories</a>:<dd><a href=#flow-content-2 id=the-u-element:flow-content-2>Flow content</a>.<dd><a href=#phrasing-content-2 id=the-u-element:phrasing-content-2>Phrasing content</a>.<dd><a href=#palpable-content-2 id=the-u-element:palpable-content-2>Palpable content</a>.<dt><a href=#concept-element-contexts id=the-u-element:concept-element-contexts>Contexts in which this element can be used</a>:<dd>Where <a href=#phrasing-content-2 id=the-u-element:phrasing-content-2-2>phrasing content</a> is expected.<dt><a href=#concept-element-content-model id=the-u-element:concept-element-content-model>Content model</a>:<dd><a href=#phrasing-content-2 id=the-u-element:phrasing-content-2-3>Phrasing content</a>.<dt><a href=#concept-element-tag-omission id=the-u-element:concept-element-tag-omission>Tag omission in text/html</a>:<dd>Neither tag is omissible.<dt><a href=#concept-element-attributes id=the-u-element:concept-element-attributes>Content attributes</a>:<dd><a href=#global-attributes id=the-u-element:global-attributes>Global attributes</a><dt><a href=#concept-element-dom id=the-u-element:concept-element-dom>DOM interface</a>:<dd>Uses <code id=the-u-element:htmlelement><a href=#htmlelement>HTMLElement</a></code>.</dl>

script APIs such as <code id=preprocessing-the-input-stream:dom-document-write><a href=#dom-document-write>document.write()</a></code>.)</p>

<p>U+000D CARRIAGE RETURN (CR) characters and U+000A LINE FEED (LF) characters are treated
specially. All CR characters must be converted to LF characters, and any LF characters that
immediately follow a CR character must be ignored. Thus, newlines in HTML DOMs are represented by
specially. Any LF character that immediately follows a CR character must be ignored, and all CR
characters must then be converted to LF characters. Thus, newlines in HTML DOMs are represented by
LF characters, and there are never any CR characters in the input to the <a href=#tokenization id=preprocessing-the-input-stream:tokenization>tokenization</a>
stage.</p>

4 source
script APIs such as <code data-x="dom-document-write">document.write()</code>.)</p>

<p>U+000D CARRIAGE RETURN (CR) characters and U+000A LINE FEED (LF) characters are treated
specially. All CR characters must be converted to LF characters, and any LF characters that
immediately follow a CR character must be ignored. Thus, newlines in HTML DOMs are represented by
specially. Any LF character that immediately follows a CR character must be ignored, and all CR
characters must then be converted to LF characters. Thus, newlines in HTML DOMs are represented by
LF characters, and there are never any CR characters in the input to the <span>tokenization</span>
stage.</p>

0 comments on commit 4fb1fd7

Please sign in to comment.
You can’t perform that action at this time.