- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 26 Nov 2008 22:49:02 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv13242
Modified Files:
Overview.html
Log Message:
Add some examples for <dfn> and <abbr>. (whatwg r2466)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1636
retrieving revision 1.1637
diff -u -d -r1.1636 -r1.1637
--- Overview.html 26 Nov 2008 22:21:18 -0000 1.1636
+++ Overview.html 26 Nov 2008 22:48:59 -0000 1.1637
@@ -9468,7 +9468,26 @@
</dl><p>The <code><a href=#the-dd-element>dd</a></code> element represents the description,
definition, or value, part of a term-description group in a
description list (<code><a href=#the-dl-element>dl</a></code> element), and the discourse, or
- quote, part in a conversation (<code><a href=#the-dialog-element>dialog</a></code> element).<h3 id=text-level-semantics><span class=secno>4.6 </span>Text-level semantics</h3><!-- XXX ew, find a better section name --><h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn> element</h4><dl class=element><dt>Categories</dt>
+ quote, part in a conversation (<code><a href=#the-dialog-element>dialog</a></code> element).<div class=example>
+
+ <p>A <code><a href=#the-dl-element>dl</a></code> can be used to define a vocabulary list, like
+ in a dictionary. In the following example, each entry, given by a
+ <code><a href=#the-dt-element>dt</a></code> with a <code><a href=#the-dfn-element>dfn</a></code>, has several
+ <code><a href=#the-dd-element>dd</a></code>s, showing the various parts of the definition.</p>
+
+ <!-- the actual pronunciations below are nonsense. -->
+ <pre><dl>
+ <dt><dfn>happiness</dfn></dt>
+ <dd class="pronunciation">/'hæ p. nes/</dd>
+ <dd class="part-of-speech"><i><abbr>n.</abbr></i></dd>
+ <dd>The state of being happy.</dd>
+ <dd>Good fortune; success. <q>Oh <b>happiness</b>! It worked!</q></dd>
+ <dt><dfn>rejoice</dfn></dt>
+ <dd class="pronunciation">/ri jois'/</dd>
+ <dd><i class="part-of-speech"><abbr>v.intr.</abbr></i> To be delighted oneself.</dd>
+ <dd><i class="part-of-speech"><abbr>v.tr.</abbr></i> To cause one to be delighted.</dd>
+</dl></pre>
+ </div><h3 id=text-level-semantics><span class=secno>4.6 </span>Text-level semantics</h3><!-- XXX ew, find a better section name --><h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn> element</h4><dl class=element><dt>Categories</dt>
<dd><a href=#interactive-content-0>Interactive content</a>.</dd>
<dd>When the element only contains <a href=#phrasing-content-0>phrasing content</a>: <a href=#phrasing-content-0>phrasing content</a>.</dd>
<dd>Otherwise: <a href=#flow-content-0>flow content</a>.</dd>
@@ -10057,21 +10076,7 @@
<p>Teal'c activated his <a href=#gdo><abbr title="Garage Door Opener">GDO</abbr></a>
and so Hammond ordered the iris to be opened.</p></pre>
- </div><!--XXX
-> One useful line of retreat would be to specify that in the following
-> code, "the state of being happy" is unambiguously a definition of
-> "happiness" and not of any other subset of the <dt>.
->
-> <dl>
-> <dt><dfn>happiness</dfn> /'hæ p. nes/ <i><abbr>n.</abbr></i></dt>
-> <dd>the state of being happy</dd>
-> </dl>
->
-> This could be encouraged by "dt dfn {font-weight: bold; font-style:
-> normal;}" in browsers' default style sheets, which would be quite
-> backward-compatible because of the rarity of <dt><dfn> up to now.
-- mpt
---><h4 id=the-abbr-element><span class=secno>4.6.9 </span>The <dfn><code>abbr</code></dfn> element</h4><dl class=element><dt>Categories</dt>
+ </div><h4 id=the-abbr-element><span class=secno>4.6.9 </span>The <dfn><code>abbr</code></dfn> element</h4><dl class=element><dt>Categories</dt>
<dd><a href=#phrasing-content-0>Phrasing content</a>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <a href=#phrasing-content-0>phrasing content</a> is expected.</dd>
@@ -10095,6 +10100,13 @@
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>
+ <p>An alternative way to write this would be:</p>
+ <pre><p>The <dfn id=whatwg>Web Hypertext Application Technology
+Working Group</dfn> (<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>
</div><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
Received on Wednesday, 26 November 2008 22:49:14 UTC