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 25550 - Shouldn't <details> also allow intermixed script-supporting elements (before the <summary>)?
Summary: Shouldn't <details> also allow intermixed script-supporting elements (before ...
Status: RESOLVED WONTFIX
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other All
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard: blocked on dependencies
Keywords:
Depends on: 25552
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-05 16:20 UTC by contributor
Modified: 2017-07-21 17:44 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2014-05-05 16:20:26 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/
Multipage: http://www.whatwg.org/C#the-details-element
Complete: http://www.whatwg.org/c#the-details-element
Referrer: 

Comment:
Shouldn't <details> also allow intermixed script-supporting elements (before
the <summary>)?

Posted from: 2a00:801:e0:30:d9c4:c34f:b530:6023
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.116 Safari/537.36 OPR/21.0.1432.48 (Edition Next)
Comment 1 Ian 'Hixie' Hickson 2014-05-05 21:32:44 UTC
Is there any benefit to putting a <script> element before the <summary> rather than after it? Note that <style scoped> elements are just allowed where the flow content starts, not at the start of the parent element. Why would that not be enough for script also?
Comment 2 Simon Pieters 2014-05-14 13:02:18 UTC
The end result for <style> is the same if it's first or not (modulo selectors I guess). The same is not true for <script> -- the DOM is different when the script runs. (But I'm not sure the current situation is great for <style scoped> either.)
Comment 3 Ian 'Hixie' Hickson 2014-05-14 23:37:43 UTC
I agree that the DOM would be mildly different, but it's not clear that that is a particularly big deal here.
Comment 4 Michael[tm] Smith 2017-07-21 17:44:39 UTC
Let’s re-raise this in the GitHub issue tracker if necessary.