Skip to content

<meta http-equiv="refresh"> fails to validate inside <noscript> in <head> #2

Closed
@Spaxe

Description

@Spaxe

Minimal test case:

<!DOCTYPE html>
<html>
<head>
  <title>Minimal Test Cast for a meta tag inside noscript</title>

  <noscript>
    <meta http-equiv="refresh" content="0; url=/javascript-disabled/">
  </noscript>

</head>
<body>
</body>
</html>

Also, the output seems to be HTML 4.01 EN? See output below:

└──>>tidy meta-noscript.html 
line 6 column 3 - Warning: inserting implicit <body>
line 7 column 5 - Warning: <meta> isn't allowed in <noscript> elements
line 6 column 3 - Info: <noscript> previously mentioned
line 10 column 1 - Warning: </head> isn't allowed in <body> elements
line 6 column 3 - Info: <body> previously mentioned
line 11 column 1 - Warning: discarding unexpected <body>
line 6 column 3 - Warning: trimming empty <noscript>
Info: Document content looks like HTML 4.01 Strict
Info: No system identifier in emitted doctype
5 warnings, 0 errors were found!

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux (vers 16 November 2011), see www.w3.org">
<title>Minimal Test Cast for a meta tag inside noscript</title>
<meta http-equiv="refresh" content="0; url=/javascript-disabled/">
</head>
<body>
</body>
</html>

To learn more about HTML Tidy see http://tidy.sourceforge.net
Please fill bug reports and queries using the "tracker" on the Tidy web site.
Additionally, questions can be sent to html-tidy@w3.org
HTML and CSS specifications are available from http://www.w3.org/
Lobby your company to join W3C, see http://www.w3.org/Consortium

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions