Closed Bug 255699 Opened 20 years ago Closed 20 years ago

CDATA sections ignored in style elements

Categories

(Core :: DOM: HTML Parser, defect)

x86
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 27403

People

(Reporter: x, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040808 Firefox/0.9.3 Build Identifier: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7) Gecko/20040808 Firefox/0.9.3 A CDATA section in a style element is ignored. This works in XML mode. Reproducible: Always Steps to Reproduce: 1. Create a foo.html file 2. Fill in an empty HTML page 3. Put <style><![CDATA[html { background-color: yellow }]]></style> in <head/> 4. load, and make sure it's rendered/seen as HTML Actual Results: Won't show a page with a yellow background. Probably default bgcolor. Expected Results: A page with a yellow background. From discussion in #mozilla, I believe this is not specific to style elements, but I didn't test it.
Dupe of bug 27403 ?
absolutely. sorry for the duplicate. *** This bug has been marked as a duplicate of 27403 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.