HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/5561

File a bug

SVNBugCommentTime (UTC)
55619429[Authors] [Conformance Checkers] Adding the <s> element to the language.2010-09-29 22:28
Index: source
===================================================================
--- source	(revision 5560)
+++ source	(revision 5561)
@@ -9,7 +9,7 @@
  !    - obsolete section
  !    - element, attribute, content model, and interface indexes
  !    - section for the element itself
- !    - adding it to the section with ARIA mappings (whether it has a mapping or not)
+ !    - adding it to the section with ARIA mappings
  !
  !-->
 <!--START validation-->
@@ -869,10 +869,10 @@
   likely to be more convenient when the styles apply to multiple
   pages.</p>
 
-  <p>It is also worth noting that four elements that were previously
+  <p>It is also worth noting that some elements that were previously
   presentational have been redefined in this specification to be
   media-independent: <code>b</code>, <code>i</code>, <code>hr</code>,
-  and <code>small</code>.</p>
+  <code>s</code>, and <code>small</code>.</p>
 
 
   <h4>Syntax errors</h4>
@@ -10407,6 +10407,7 @@
    <li><code>progress</code></li>
    <li><code>q</code></li>
    <li><code>ruby</code></li>
+   <li><code>s</code></li>
    <li><code>samp</code></li>
    <li><code>script</code></li>
    <li><code>section</code></li>
@@ -10536,6 +10537,7 @@
    <li><code>progress</code></li>
    <li><code>q</code></li>
    <li><code>ruby</code></li>
+   <li><code>s</code></li>
    <li><code>samp</code></li>
    <li><code>script</code></li>
    <li><code>select</code></li>
@@ -11503,6 +11505,7 @@
     <code>rp</code>,
     <code>rt</code>,
     <code>ruby</code>,
+    <code>s</code>,
     <code>samp</code>,
     <code>small</code>,
     <code>span</code>,
@@ -19613,6 +19616,42 @@
   </div>
 
 
+  <h4>The <dfn><code>s</code></dfn> element</h4>
+
+  <dl class="element">
+   <dt>Categories</dt>
+   <dd><span>Flow content</span>.</dd>
+   <dd><span>Phrasing content</span>.</dd>
+   <dt>Contexts in which this element can be used:</dt>
+   <dd>Where <span>phrasing content</span> is expected.</dd>
+   <dt>Content model:</dt>
+   <dd><span>Phrasing content</span>.</dd>
+   <dt>Content attributes:</dt>
+   <dd><span>Global attributes</span></dd>
+   <dt>DOM interface:</dt>
+   <dd>Uses <code>HTMLElement</code>.</dd>
+  </dl>
+
+  <p>The <code>s</code> element <span>represents</span> contents that
+  are no longer accurate or no longer relevant.</p>
+
+  <p class="note">The <code>s</code> element is not appropriate when
+  indicating document edits; to mark a span of text as having been
+  removed from a document, use the <code>del</code> element.</p>
+
+  <div class="example">
+
+   <p>In this example a recommended retail price has been marked as no
+   longer relevant as the product in question has a new sale
+   price.</p>
+
+   <pre>&lt;p>Buy our Iced Tea and Lemonade!&lt;/p>
+&lt;p>&lt;s>Recommended retail price: $3.99 per bottle&lt;/s>&lt;/p>
+&lt;p>&lt;strong>Now selling for just $2.99 a bottle!&lt;/strong>&lt;/p></pre>
+
+  </div>
+
+
   <h4>The <dfn><code>cite</code></dfn> element</h4>
 
   <dl class="element">
@@ -21383,6 +21422,11 @@
      <td><pre class="example">These grapes are made into wine. <strong>&lt;small>Alcohol is addictive.&lt;/small></strong></pre>
 
     <tr>
+     <td><code>s</code>
+     <td>Inaccurate text
+     <td><pre class="example">Price: <strong>&lt;s>&pound;4.50&lt;/s></strong> &pound;2.00!</pre>
+
+    <tr>
      <td><code>cite</code>
      <td>Titles of works
      <td><pre class="example">The case <strong>&lt;cite>Hugo v. Danielle&lt;/cite></strong> is relevant here.</pre>
@@ -100452,6 +100496,9 @@
    <dt><dfn><code>rb</code></dfn></dt>
    <dd><p>Providing the ruby base directly inside the <code>ruby</code> element is sufficient; the <code>rb</code> element is unnecessary. Omit it altogether.</p></dd>
 
+   <dt><dfn><code>strike</code></dfn></dt>
+   <dd><p>Use <code>del</code> instead if the element is marking an edit, otherwise use <code>s</code> instead.</p></dd>
+
    <dt><dfn><code>basefont</code></dfn></dt>
    <dt><dfn><code>big</code></dfn></dt>
    <dt><dfn><code>blink</code></dfn></dt>
@@ -100460,9 +100507,7 @@
    <dt><code>marquee</code></dt>
    <dt><dfn><code>multicol</code></dfn></dt>
    <dt><dfn><code>nobr</code></dfn></dt>
-   <dt><dfn><code>s</code></dfn></dt>
    <dt><dfn><code>spacer</code></dfn></dt>
-   <dt><dfn><code>strike</code></dfn></dt>
    <dt><dfn><code>tt</code></dfn></dt>
    <dt><dfn><code>u</code></dfn></dt>
 
@@ -100470,10 +100515,6 @@
 
     <p>Use appropriate elements and/or CSS instead.</p>
 
-    <p>For the <code>s</code> and <code>strike</code> elements, if
-    they are marking up a removal from the element, consider using the
-    <code>del</code> element instead.</p>
-
     <p>Where the <code>tt</code> element would have been used for
     marking up keyboard input, consider the <code>kbd</code> element;
     for variables, consider the <code>var</code> element; for computer
@@ -103833,6 +103874,17 @@
     </tr>
 
     <tr>
+     <th><code>s</code></th>
+     <td>Inaccurate text</td>
+     <td><span title="Flow content">flow</span>;
+         <span title="Phrasing content">phrasing</span></td>
+     <td><span title="Phrasing content">phrasing</span></td>
+     <td><span title="Phrasing content">phrasing</span></td>
+     <td><span title="global attributes">globals</span></td>
+     <td><code>HTMLElement</code></td>
+    </tr>
+
+    <tr>
      <th><code>samp</code></th>
      <td>Computer output</td>
      <td><span title="Flow content">flow</span>;
@@ -104298,6 +104350,7 @@
       <code>progress</code>;
       <code>q</code>;
       <code>ruby</code>;
+      <code>s</code>;
       <code>samp</code>;
       <code>script</code>;
       <code>section</code>;
@@ -104380,6 +104433,7 @@
       <code>progress</code>;
       <code>q</code>;
       <code>ruby</code>;
+      <code>s</code>;
       <code>samp</code>;
       <code>script</code>;
       <code>select</code>;
@@ -106174,6 +106228,10 @@
      <td> <code>HTMLElement</code>
 
     <tr>
+     <td> <code>s</code>
+     <td> <code>HTMLElement</code>
+
+    <tr>
      <td> <code>samp</code>
      <td> <code>HTMLElement</code>
 

|