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 22502 - Make script be allowed in the same places as template, so that data blocks are allowed where templates are allowed. I think people also put scripts basically anywhere, and it works fine, so having the [...]
Summary: Make script be allowed in the same places as template, so that data blocks ar...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 22:04 UTC by contributor
Modified: 2013-07-03 18:27 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2013-06-27 22:04:00 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html
Multipage: http://www.whatwg.org/C#script
Complete: http://www.whatwg.org/c#script
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/

Comment:
Make script be allowed in the same places as template, so that data blocks are
allowed where templates are allowed. I think people also put scripts basically
anywhere, and it works fine, so having the validator complain about it is not
so helpful.

Posted from: 212.247.211.200
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.52 Safari/537.36 OPR/15.0.1147.100 (Edition Next)
Comment 1 Michael[tm] Smith 2013-06-28 02:26:07 UTC
Where's the spec not allow script now but that template would be allowed?
Comment 2 Simon Pieters 2013-06-28 08:06:06 UTC
In <ol>, in <table>, etc.
Comment 3 Ian 'Hixie' Hickson 2013-07-03 17:28:17 UTC
Turns out <colgroup> doesn't support <script> (but does support <template>). That's the only exception though, I think.
Comment 4 contributor 2013-07-03 18:27:04 UTC
Checked in as WHATWG revision r8022.
Check-in comment: Make <script> be accepted in most places <template> is now accepted, e.g. inside <table>s. Doesn't affect parsing.
http://html5.org/tools/web-apps-tracker?from=8021&to=8022