This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7735 - perhaps open could be an int rather than boolean, indicating which content area was open to make using this model for tabs easier
Summary: perhaps open could be an int rather than boolean, indicating which content ar...
Status: CLOSED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords: NE
Depends on:
Blocks:
 
Reported: 2009-09-26 16:49 UTC by contributor
Modified: 2010-10-04 14:31 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2009-09-26 16:49:27 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#the-details-element

Comment:
perhaps open could be an int rather than boolean, indicating which content area was open to make using this model for tabs easier

Posted from: 71.202.125.35
Comment 1 Ian 'Hixie' Hickson 2009-09-29 10:57:46 UTC
Tabs are a presentation-level concern (specifically a visual media feature), and thus out of scope for media-independent HTML.
Comment 2 Jim Jewett 2009-09-29 14:42:06 UTC
If I understand correctly, this request is about selecting from multiple potential <details> bodies, and that selection is no more presentational that details itself.  

The current model (with made-up names, since they're in flux) is:

<details><itemhead>This always shows</itemhead>The main content does not show, unless the details "open" attribute is true</details>

The bug is asking to put the larger contents in a container (such as dd), and to have open indicate *which* of those containers is open.

<details><dt>This always shows</st>
<dd>The main content does not show, unless the details "open" attribute selects it.  This particular piece of content would be hidden unless open=1.</dd>
<dd>If open=2, then this piece of content would show instead.</dd>
</details>

Comment 3 Ian 'Hixie' Hickson 2009-09-29 22:29:39 UTC
That's what I understood the proposal to be also, yes. However, without use cases other than tabs, it is not compelling for this version of the language.
Comment 4 Maciej Stachowiak 2010-03-14 14:51:50 UTC
This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
  http://dev.w3.org/html5/decision-policy/decision-policy.html

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.
Comment 5 Jim Jewett 2010-03-15 04:21:57 UTC
OK, if there is only one potential body, then I agree that boolean is sufficient.  I also agree that choosing among several potential bodies is probably not for this version.