Bugzilla – Bug 170
Change <abbr>. It's only valid for actual expansions now.
Last modified: 2008-04-22 00:00:13 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><p>The <abbr title="Web Hypertext Application Technology -Working Group">WHATWG</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.</p></pre> + <code>abbr</code> element. This paragraph <span title="defining + term">defines the term</span> "Web Hypertext Application Technology + Working Group".</p> + <pre><p>The <dfn id=whatwg><abbr title="Web Hypertext Application +Technology Working Group">WHATWG</abbr></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.</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><p>The <abbr title="Web Hypertext Application Technology Working +Group">WHATWG</abbr> started working on HTML5 in 2004.</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><p>The <dfn><abbr>Zat</abbr></dfn>, short for Zat'ni'catel, is a weapon.</p> -<p>Jack used a <abbr>Zat</abbr> to make the boxes of evidence disappear.</p></pre> - + <div class="example"> + <p>This paragraph links an abbreviation to its definition.</p> + <pre><p>The <a href="#whatwg"><abbr title="Web Hypertext Application +Technology Working Group">WHATWG</abbr></a> community does not +have much representation from Asia.</p></pre> </div>