|
10 | 10 | pre strong { color: black; font: inherit; font-weight: bold; background: yellow; } |
11 | 11 | .XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; } |
12 | 12 | </style> |
| 13 | + <style> |
| 14 | + .bad { color: gray; } |
| 15 | + </style> |
13 | 16 | <link class="not-whatwg" href="https://www.w3.org/StyleSheets/TR/W3C-NOTE" rel="stylesheet"> |
14 | 17 |
|
15 | 18 | </head> |
|
32 | 35 |
|
33 | 36 | <div class="not-whatwg"> |
34 | 37 | <h1>HTML5 Differences from HTML4</h1> |
35 | | - <p id="w3c-doctype">W3C Working Group Note 22 August 2014</p> |
| 38 | + <p id="w3c-doctype">W3C Working Group Note 28 August 2014</p> |
36 | 39 | </div> |
37 | 40 |
|
38 | 41 | <dl> |
39 | 42 | <dt>This Version:</dt> |
40 | | - <dd class="not-draft not-whatwg"><a href="http://www.w3.org/TR/2014/NOTE-html5-diff-20140822/">http://www.w3.org/TR/2014/NOTE-html5-diff-20140822/</a></dd> |
| 43 | + <dd class="not-draft not-whatwg"><a href="http://www.w3.org/TR/2014/NOTE-html5-diff-20140828/">http://www.w3.org/TR/2014/NOTE-html5-diff-20140828/</a></dd> |
41 | 44 | <dt class="not-draft">Latest Version:</dt> |
42 | 45 | <dd class="not-draft"><a href="http://www.w3.org/TR/html5-diff/">http://www.w3.org/TR/html5-diff/</a></dd> |
43 | 46 |
|
@@ -101,7 +104,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2> |
101 | 104 | found in the <a href="http://www.w3.org/TR/">W3C technical reports index</a> |
102 | 105 | at http://www.w3.org/TR/.</i></p> |
103 | 106 |
|
104 | | - <p>This is the 22 August 2014 W3C Working Group Note produced by the |
| 107 | + <p>This is the 28 August 2014 W3C Working Group Note produced by the |
105 | 108 | <a href="http://www.w3.org/html/wg/">HTML Working Group</a>, part of the |
106 | 109 | <a href="http://www.w3.org/MarkUp/Activity">HTML Activity</a>. The |
107 | 110 | Working Group intends to publish this document as a |
@@ -609,7 +612,12 @@ <h3 id="new-attributes"><span class="secno">3.2 </span>New Attributes</h3> |
609 | 612 | <p>A new <code class="external" title="attr-input-placeholder"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#attr-input-placeholder">placeholder</a></code> attribute can be specified on |
610 | 613 | the <code class="external"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-input-element">input</a></code> and <code class="external"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-textarea-element">textarea</a></code> elements. It |
611 | 614 | represents a hint intended to aid the user with data entry.</p> |
612 | | - <pre><input type=email <strong>placeholder="a@b.com"</strong>></pre> |
| 615 | + <pre><input type=search name=q <strong>placeholder="Enter search phrase..."</strong>> <button>Search</button></pre> |
| 616 | + <pre><label>Email <input type=email name=email <strong>placeholder="john@example.com"</strong>></label></pre> |
| 617 | + <p>The <code class="external" title="attr-input-placeholder"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#attr-input-placeholder">placeholder</a></code> attribute should not be used as a replacement for the |
| 618 | + <code class="external"><a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html#the-label-element">label</a></code> element. |
| 619 | + <pre class="bad"><!-- Do not do this: --> |
| 620 | +<input type=email name=email placeholder="Email"></pre> |
613 | 621 | </li> |
614 | 622 |
|
615 | 623 | <li> |
|
0 commit comments