<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24996</bug_id>
          
          <creation_ts>2014-03-10 21:49:45 +0000</creation_ts>
          <short_desc>&lt;summary&gt; and heading question</short_desc>
          <delta_ts>2014-03-10 22:10:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rubinahaddad</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>102165</commentid>
    <comment_count>0</comment_count>
    <who name="">rubinahaddad</who>
    <bug_when>2014-03-10 21:49:45 +0000</bug_when>
    <thetext>We are using the &lt;summary&gt; and &lt;details&gt; elements to get the expand/collapsable polyfill.  The &lt;summary&gt; sometimes acts as the heading for the &lt;details&gt; for example a question and an answer section.  My question is why isn&apos;t a heading allowed in the summary if it makes sense to give it structure: http://www.w3.org/TR/WCAG20-TECHS/H42

Current:

&lt;details&gt;
 &lt;summary&gt;Why can&apos;t I add a h2 here?&lt;/summary&gt;
 &lt;p&gt;…&lt;/p&gt;
&lt;/details&gt;

Proposed: 
&lt;details&gt;
 &lt;summary&gt;&lt;h2&gt;Why can&apos;t I add a h2 here?&lt;/h2&gt;&lt;/summary&gt;
 &lt;p&gt;…&lt;/p&gt;
&lt;/details&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102168</commentid>
    <comment_count>1</comment_count>
    <who name="">rubinahaddad</who>
    <bug_when>2014-03-10 22:01:50 +0000</bug_when>
    <thetext>I realize that doesn&apos;t work structurally. So maybe something like:

&lt;details&gt;
 &lt;h2&gt;&lt;summary&gt;Why can&apos;t I add a h2 here?&lt;/summary&gt;&lt;/h2&gt;
 &lt;p&gt;…&lt;/p&gt;
&lt;/details&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102171</commentid>
    <comment_count>2</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-03-10 22:10:16 +0000</bug_when>
    <thetext>(In reply to rubinahaddad from comment #0)
&gt; We are using the &lt;summary&gt; and &lt;details&gt; elements to get the
&gt; expand/collapsable polyfill.  The &lt;summary&gt; sometimes acts as the heading
&gt; for the &lt;details&gt; for example a question and an answer section.  My question
&gt; is why isn&apos;t a heading allowed in the summary if it makes sense to give it
&gt; structure: http://www.w3.org/TR/WCAG20-TECHS/H42
&gt; 
&gt; Current:
&gt; 
&gt; &lt;details&gt;
&gt;  &lt;summary&gt;Why can&apos;t I add a h2 here?&lt;/summary&gt;
&gt;  &lt;p&gt;…&lt;/p&gt;
&gt; &lt;/details&gt;
&gt; 
&gt; Proposed: 
&gt; &lt;details&gt;
&gt;  &lt;summary&gt;&lt;h2&gt;Why can&apos;t I add a h2 here?&lt;/h2&gt;&lt;/summary&gt;
&gt;  &lt;p&gt;…&lt;/p&gt;
&gt; &lt;/details&gt;

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

&gt; Proposed: 
&gt; &lt;details&gt;
&gt;  &lt;summary&gt;&lt;h2&gt;Why can&apos;t I add a h2 here?&lt;/h2&gt;&lt;/summary&gt;
&gt;  &lt;p&gt;…&lt;/p&gt;
&gt; &lt;/details&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>