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 10981 - Is there reasoning behind <summary> not being able to contain headings? I can see a lot of real-world uses for that that I'd love to do without JS. For example, take the "Edit Description" H2 in this mockup: http://people.mozilla.com/~chowse/drop/sumo/kb/
Summary: Is there reasoning behind <summary> not being able to contain headings? I can...
Status: CLOSED WONTFIX
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: 2010-10-06 00:29 UTC by contributor
Modified: 2011-08-04 05:13 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2010-10-06 00:29:46 UTC
Section: http://www.whatwg.org/specs/web-apps/current-work/#updatesEnabled

Comment:
Is there reasoning behind <summary> not being able to contain headings? I can
see a lot of real-world uses for that that I'd love to do without JS. For
example, take the "Edit Description" H2 in this mockup:
http://people.mozilla.com/~chowse/drop/sumo/kb/v7/contributing/02_editing.png. 

Posted from: 63.245.220.240 by erik@mozilla.com
Comment 1 Ian 'Hixie' Hickson 2010-10-12 08:25:37 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: Rejected
Change Description: no spec change
Rationale: It's not so much that it can't contain headings, so much as it has to only contain phrasing content, much like <legend> or <p>, or, indeed, <h1>. 

In the example given, you can just use <details> as is. Just style it to look like in the mockup using CSS. It's all semantically fine, because the whole point of <summary> is that it's the "heading" for the contents of the <details>. :-)

(It's a little suboptimal in that really <details> should be used to hide stuff that is summarised in <summary>, not to create a section that can be closed, the latter is really more presentation. But that's somewhat splitting hairs.)
Comment 2 Michael[tm] Smith 2011-08-04 05:13:19 UTC
mass-move component to LC1