[Bug 24996] <summary> and heading question

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

steve faulkner <faulkner.steve@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |faulkner.steve@gmail.com
         Resolution|---                         |WORKSFORME
           Assignee|dave.null@w3.org            |faulkner.steve@gmail.com

--- Comment #2 from steve faulkner <faulkner.steve@gmail.com> ---
(In reply to rubinahaddad from comment #0)
> 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>

THe summary element can contain: Either: phrasing content.
Or: one element of heading content.
http://www.w3.org/html/wg/drafts/html/master/interactive-elements.html#the-summary-element

so you can do

> 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 22:10:18 UTC