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 13615 - We should include an example that shows that the "open" content attribute reflects the state of the details element. Most attributes don't work like this, so it's not immediately clear that you can use "details[open]" for this.
Summary: We should include an example that shows that the "open" content attribute ref...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 17:06 UTC by contributor
Modified: 2011-08-15 21:47 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2011-08-03 17:06:42 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/complete/interactive-elements.html
Multipage: http://www.whatwg.org/C#the-details-element
Complete: http://www.whatwg.org/c#the-details-element

Comment:
We should include an example that shows that the "open" content attribute
reflects the state of the details element.  Most attributes don't work like
this, so it's not immediately clear that you can use "details[open]" for this.

Posted from: 76.253.3.102
User agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30
Comment 1 Tab Atkins Jr. 2011-08-03 17:10:07 UTC
For example, the checkedness of a checkbox can't be selected by "input[checked]", so the fact that this works for details is non-obvious unless you read the spec carefully.
Comment 2 Michael[tm] Smith 2011-08-04 05:14:24 UTC
mass-move component to LC1
Comment 3 Ian 'Hixie' Hickson 2011-08-15 21:45:53 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, 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

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 4 contributor 2011-08-15 21:47:00 UTC
Checked in as WHATWG revision r6464.
Check-in comment: Example of <details> with CSS.
http://html5.org/tools/web-apps-tracker?from=6463&to=6464