[Bug 13460] New: Show more use cases for details/summary elements

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13460

           Summary: Show more use cases for details/summary elements
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://www.w3.org/TR/2011/WD-html5-20110525/interactiv
                    e-elements.html#the-details-element
        OS/Version: Windows XP
            Status: NEW
          Keywords: a11y, a11ytf
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: cooper@w3.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org, public-html-a11y@w3.org


It is possible to consider a great many use cases for a feature like <details>
with <summary> that shows elided content plus full content. However, the
examples and placement in the spec make it look like it's meant to be a
particular kind of widget. On the other hand, the content model suggests that
it can in fact be used in a wide variety of ways. Additional examples would
help clarify this.

Edit details: Add the following examples to the <details> element.

1.) A new site shows a summary of an article with the option to view full
content.

<section>
  <h2>Government balances budget</h2>
  <details>
    <summary>The governing party has announced passage of a budget with support
from all other parties.</summary>
    <p>The government has announced a budget that will not increase the federal
debt for the upcoming budget year. This budget has unprecedented support from
opposition parties as well. Though the debate was intense, discussion was
clearly motivated by a desire to serve the electorate well, taking priority
over serving the individual interests of elected officials and their funders.
Analysts predict this budget will increase GDP by 3% over the upcoming budget
cycle and eliminate government debt in 5 years.</p>
    <p>etc.</p>
  </details>
</section>

2.) A science site provides an easy-to-read version of technical content.

<details>
  <summary>Special relativity says that space and time our connected. If we
move faster through one, we move slower through another to maintain that
connection. The faster we travel, the more time for us slows down. If we go
really fast, our clocks get so slow that we age less than everybody
else.</summary>
  <p>According to the theory of special relativity, we move through
4-dimensional spacetime at a constant rate. This rate is c, also known as the
speed of light in a vacuum. As we increase our speed in space, our speed in
time slows down correspondingly. The correspondence is given by the famous
equation e=mc<sup>2</sup>. This formula makes it possible to calculate the
kinetic energy of a mass traveling through space at a given speed in a way that
relates it to the constant speed through spacetime c. The speed of that mass
through the time dimension slows down correspondingly to achieve a constant
speed through spacetime.</p>
  <p>etc.</p>
</details>

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 29 July 2011 19:39:39 UTC