Closed Bug 410064 Opened 18 years ago Closed 16 years ago

http-equiv meta tag inside script is interpreted and applied

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
minor

Tracking

()

RESOLVED WONTFIX

People

(Reporter: uriber, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

A <meta> tag inside a string in a script (or anywhere inside a <script> tag, for that matter) should not be taken into account when determining page encoding. This is similar to bug 124904, which dealt with http-equiv meta tags in HTML comments. Reported (in Heberw) at: http://mozilla.org.il/board/viewtopic.php?f=13&t=5875
Attached file testcase
The testcase doesn't work from Bugzilla, since Bugzilla apparently sends a character-encoding HTTP header that overrides the meta tags.
Yeah. As a workaround, the site can use the comment hack <script><!-- ... // --></script> to hide the meta tag.
WONTFIX per HTML5 spec. (The meta prescan doesn't use the full parser.)
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: