[whatwg] Validator.nu Bug: "Error: XHTML element noscript not allowed as child of XHTML element head in this context."

I am using noscript as permitted, "In a head element of an HTML
document, if there are no ancestor noscript elements." but still
getting an error from Validator.nu saying it's not allowed.

Settings:

Encoding: as set by server/page
Schemas: http://s.validator.nu/xhtml5-aria-rdf-svg-mathml.rnc
http://s.validator.nu/html5/assertions.sch http://c.validator.nu/all/
Preset: XHTML5+ARIA, SVG 1.1 plus MathML 2.0
Parser: XML; don't load external entities
XMLNS Filter: [blank]
[ ] Be lax about HTTP Content-Type
[ ] Show Image Report
[x] Show Source

Original input:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="http://use.typekit.com/uys3rrk.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<noscript>
<link href="/styles/typekit-fallback.css" rel="stylesheet" media="all" />
</noscript>
</head>
<body>
<p></p>
</body>
</html>

Result:

Error: XHTML element noscript not allowed as child of XHTML element
head in this context. (Suppressing further errors from this subtree.)

>From line 6, column 1; to line 6, column 10

></title>?<noscript>?<link

Contexts in which element noscript 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.

Content model for element head:
If the document is an iframe srcdoc document or if title information
is available from a higher-level protocol: Zero or more elements of
metadata content.
Otherwise: One or more elements of metadata content, of which exactly
one is a title element.

Received on Friday, 27 August 2010 02:10:44 UTC