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 9515 - Allow <noscript> element as child element of <head> element
Summary: Allow <noscript> element as child element of <head> element
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Windows 2000
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 12:14 UTC by Axel Dahmen
Modified: 2010-10-04 14:47 UTC (History)
4 users (show)

See Also:


Attachments

Description Axel Dahmen 2010-04-14 12:14:40 UTC
I have read about several scenarios requiring a different set of style sheets when script is disabled or not available at a UA.

Currently, <script> is allowed as a child element of <head>, but this is not true for the <noscript> element. (Although a couple of browser vendors yet support the <noscript> tag in the <head> section of a HTML page.)

I suggest to add the <noscript> element to the list of child elements allowed on the <head> element.
Comment 1 Simon Pieters 2010-04-14 13:31:24 UTC
It already is allowed in head:

Contexts in which this element may be used:

In a head element of an HTML document, if there are no ancestor noscript elements.

Where phrasing content is expected in HTML documents, if there are no ancestor noscript elements.
Comment 2 Axel Dahmen 2010-05-07 03:03:23 UTC
I can't find a DTD in the HTML5 spec, neither can I find your comment there. Where is it written?

From the HTML4.01 DTD I can tell that <noscript> is not allowed:

<!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
Comment 3 Michael[tm] Smith 2010-05-07 03:11:57 UTC
(In reply to comment #2)
> I can't find a DTD in the HTML5 spec, neither can I find your comment there.
> Where is it written?

http://dev.w3.org/html5/spec/semantics.html#the-noscript-element

See the "Contexts in which this element may be used" section there (which is Simon quoted from in comment 1).
Comment 4 Axel Dahmen 2010-05-07 03:43:29 UTC
OK, found it... I see now. Thanks!