<?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>13345</bug_id>
          
          <creation_ts>2011-07-24 14:57:40 +0000</creation_ts>
          <short_desc>&lt;details&gt; should be allowed in &lt;p&gt;</short_desc>
          <delta_ts>2011-11-18 16:03:43 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#parsing-main-inbody</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11ytf, a11y_semantics</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>ian</cc>
    
    <cc>joshue.oconnor</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>51423</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-07-24 14:57:40 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html
Multipage: http://www.whatwg.org/C#parsing-main-inbody
Complete: http://www.whatwg.org/c#parsing-main-inbody

Comment:
I want to be able to put &lt;details&gt; inside &lt;p&gt;.	The use-case is that I&apos;m
writing spec text and want to put rationale inline, collapsed in a &lt;details&gt;. 
I don&apos;t want it to be on its own line because then it would take up too much
space: after all, that&apos;s why I made it collapsible.  &lt;details&gt; should be
inline by default, not block; if authors want a collapsible section that&apos;s
within its own block, they can wrap it in a &lt;div&gt; or &lt;p&gt;.

Posted from: 68.175.61.233
User agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.803.0 Safari/535.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51424</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-07-24 15:01:28 +0000</bug_when>
    <thetext>Note that this would affect all major browsers (any that have implemented the HTML parser) in a backward-incompatible way.  This needs to be fixed ASAP if it&apos;s going to be fixed at all.  I think it&apos;s still feasible, because &lt;details&gt; hasn&apos;t started being used significantly yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51425</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-24 18:48:05 +0000</bug_when>
    <thetext>I don&apos;t think this makes much sense. It renders as a block-level widget.

&lt;details&gt; is completely inappropriate for inline rationale. It&apos;s not a footnote element. It&apos;s specifically and exclusively intended to be a disclosure triangle widget.

If we want a footnote element then we should add a footnote element.

&lt;details&gt; is intended to be essentially be parallel to &lt;fieldset&gt;, the difference being that the group can be collapsed if it&apos;s a &lt;details&gt; element.

(As a side-note, I believe this would be the first time we&apos;d be allowing &lt;p&gt;s to be nested. I think keeping the language consistent in that you can never nest &lt;p&gt;s is a good thing.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51452</commentid>
    <comment_count>3</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-07-25 18:45:08 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I don&apos;t think this makes much sense. It renders as a block-level widget.

I&apos;m saying it shouldn&apos;t, by default.  It should be allowed as a child of &lt;p&gt;, it should render inline by default, and its content model should be something like &quot;transparent except it can have a summary at the start&quot;.

Note that you can already make it inline in Chrome&apos;s implementation with details, summary { display: inline }.  This is the only implementation so far AFAICT.  Authors who wanted it to display block-level could use CSS, as for any presentational issue.

Logically, an alternative would be for it to be block by default but let the author make it inline.  But then we&apos;d want it to autoclose &lt;p&gt;, and then it can&apos;t be used inline in some cases.  The only way to allow both behaviors is make it inline by default and let authors opt into block with CSS.

&gt; &lt;details&gt; is completely inappropriate for inline rationale. It&apos;s not a footnote
&gt; element. It&apos;s specifically and exclusively intended to be a disclosure triangle
&gt; widget.
&gt; 
&gt; If we want a footnote element then we should add a footnote element.

What&apos;s the difference?  What I want is content that&apos;s not displayed by default, but which the author can display by clicking on a provided button or link, without having to use JavaScript.  Why does block vs. inline deserve two separate elements?

&gt; &lt;details&gt; is intended to be essentially be parallel to &lt;fieldset&gt;, the
&gt; difference being that the group can be collapsed if it&apos;s a &lt;details&gt; element.

Why shouldn&apos;t it be usable for inline collapsed annotations as well?  It&apos;s the exact same idea.

&gt; (As a side-note, I believe this would be the first time we&apos;d be allowing &lt;p&gt;s
&gt; to be nested. I think keeping the language consistent in that you can never
&gt; nest &lt;p&gt;s is a good thing.)

So don&apos;t allow that, change the content model too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52004</commentid>
    <comment_count>4</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-02 19:13:17 +0000</bug_when>
    <thetext>FWIW, in my spec I wound up going with floated buttons that expand to position: absolute divs so they don&apos;t disrupt the content when you click.  It turned out lots of my comments were multi-paragraph, so making them inline didn&apos;t work well.  So I could potentially use &lt;details&gt; as it stands (although right now I&apos;m just using divs and JavaScript).  So I guess I don&apos;t personally care much about this now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52752</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:04:00 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54661</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-11 02:45:21 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;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: What you&apos;re describing isn&apos;t a disclosure triangle widget. It might be similar in concept, but a footnote and a disclosure triangle are not the same thing in practice, and overloading one element to do both is just going to make the element do neither well.

If your use case is a valid use case, let&apos;s address it directly, not by trying to shoe-horn a similar element into doing double-duty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54697</commentid>
    <comment_count>7</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-08-11 14:44:03 +0000</bug_when>
    <thetext>Okay, that&apos;s probably reasonable.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>