[Bug 24996] New: <summary> and heading question

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24996

            Bug ID: 24996
           Summary: <summary> and heading question
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: rubinahaddad@gmail.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

We are using the <summary> and <details> elements to get the expand/collapsable
polyfill.  The <summary> sometimes acts as the heading for the <details> for
example a question and an answer section.  My question is why isn't a heading
allowed in the summary if it makes sense to give it structure:
http://www.w3.org/TR/WCAG20-TECHS/H42

Current:

<details>
 <summary>Why can't I add a h2 here?</summary>
 <p>…</p>
</details>

Proposed: 
<details>
 <summary><h2>Why can't I add a h2 here?</h2></summary>
 <p>…</p>
</details>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 10 March 2014 21:49:46 UTC