W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2011

[whatwg] <summary> and <details> elements' specification

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 11 Apr 2011 18:58:57 +0300
Message-ID: <50CD6C4370FA48AFB0B377923E8B9F00@JukanPC>
James Graham wrote:

>> <summary for="detailsId">This is summary. Click to show/close
>> details.</summary>
>> <div id="detailsId" hidden>...</div>
> That seems much harder for authors.

Not necessarily. The for="..." attribute could be made optional, so that the 
default association is to associate the <summary> attribute with the next 
sibling element.

(I wonder why the association between <label> elements and input fields has 
not been defined this way. It's too late now, but things aren't too late for 

> the possibility of having multiple elements between the disclosure
> element and the thing it discloses seems unnecessary.

Does it? One might say the same about <label> and input fields, but people 
want to put them into tables, and the same might apply to <summary> and 

Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Monday, 11 April 2011 08:58:57 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:05 UTC