NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 170 - Change <abbr>. It's only valid for actual expansions now.
Change <abbr>. It's only valid for actual expansions now.
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-21 10:42 CEST by Nobody
Modified: 2008-04-22 00:00 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nobody 2008-04-21 10:42:52 CEST
Index: source
===================================================================
--- source	(revision 1467)
+++ source	(revision 1468)
@@ -9345,41 +9345,36 @@
   </dl>
 
   <p>The <code>abbr</code> element represents an abbreviation or
-  acronym. The <dfn title="attr-abbr-title"><code>title</code></dfn>
-  attribute should be used to provide an expansion of the
-  abbreviation. If present, the attribute must only contain an
-  expansion of the abbreviation.</p>
+  acronym, with its expansion. The <dfn
+  title="attr-abbr-title"><code>title</code></dfn> attribute must be
+  used to provide an expansion of the abbreviation. The attribute must
+  only contain an expansion of the abbreviation.</p>
 
   <div class="example">
    <p>The paragraph below contains an abbreviation marked up with the
-   <code>abbr</code> element.</p>
-   <pre>&lt;p>The &lt;abbr title="Web Hypertext Application Technology
-Working Group">WHATWG&lt;/abbr> is a loose unofficial collaboration of
-Web browser manufacturers and interested parties who wish to develop
-new technologies designed to allow authors to write and deploy
-Applications over the World Wide Web.&lt;/p></pre>
+   <code>abbr</code> element. This paragraph <span title="defining
+   term">defines the term</span> "Web Hypertext Application Technology
+   Working Group".</p>
+   <pre>&lt;p>The &lt;dfn id=whatwg>&lt;abbr title="Web Hypertext Application
+Technology Working Group">WHATWG&lt;/abbr>&lt;/dfn> is a loose
+unofficial collaboration of Web browser manufacturers and interested
+parties who wish to develop new technologies designed to allow authors
+to write and deploy Applications over the World Wide Web.&lt;/p></pre>
   </div>
 
-  <!-- XXX should we get rid of the following?: -->
-
-  <p>The <code title="attr-abbr-title">title</code> attribute may be
-  omitted if there is a <code>dfn</code> element in the document whose
-  <span>defining term</span> is the abbreviation (the
-  <code>textContent</code> of the <code>abbr</code> element).</p>
-
   <div class="example">
+   <p>This paragraph has two abbreviations. Notice how only one is
+   defined; the other, with no expansion associated with it, does not
+   use the <code>abbr</code> element.</p>
+   <pre>&lt;p>The &lt;abbr title="Web Hypertext Application Technology Working
+Group">WHATWG&lt;/abbr> started working on HTML5 in 2004.&lt;/p></pre>
+  </div>
 
-   <p>In the example below, the word "Zat" is used as an abbreviation
-   in the second paragraph. The abbreviation is defined in the first,
-   so the explanatory <code title="attr-abbr-title">title</code>
-   attribute has been omitted. Because of the way <code>dfn</code>
-   elements are defined, the second <code>abbr</code> element in this
-   example could be connected (in some UA-specific way) to the
-   first.</p>
-
-   <pre>&lt;p>The &lt;dfn>&lt;abbr>Zat&lt;/abbr>&lt;/dfn>, short for Zat'ni'catel, is a weapon.&lt;/p>
-&lt;p>Jack used a &lt;abbr>Zat&lt;/abbr> to make the boxes of evidence disappear.&lt;/p></pre>
-
+  <div class="example">
+   <p>This paragraph links an abbreviation to its definition.</p>
+   <pre>&lt;p>The &lt;a href="#whatwg">&lt;abbr title="Web Hypertext Application
+Technology Working Group">WHATWG&lt;/abbr>&lt;/a> community does not
+have much representation from Asia.&lt;/p></pre>
   </div>