Open
Bug 1960845
Opened 6 months ago
Updated 5 months ago
Investigate the behavior around <noscript> with parseHTML
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
NEW
People
(Reporter: tschuster, Unassigned)
References
(Blocks 1 open bug)
Details
While implementing parseHTML, I stumbled upon the parameter aScriptingEnabledForNoscriptParsing of nsContentUtils::ParseDocumentHTML.
Setting this boolean results in a parsing difference for the following HTML:
<head><noscript>Hello World</noscript></head>
With false it produces:
<head><noscript></noscript></head><body>Hello World</body>
With true:
<head><noscript>Hello World</noscript></head><body></body>
The already existing parseHTMLUnsafe function also uses false. I feel like the behavior of true makes more sense though? The right behavior is probably implied by something in the specification.
| Reporter | ||
Updated•6 months ago
|
Component: DOM: Security → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•