Closed Bug 2946 Opened 26 years ago Closed 24 years ago

Page [with odd <!--/--> in STYLE] does not display at all!

Categories

(Core :: DOM: HTML Parser, defect, P2)

x86
Windows 98
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: ian, Assigned: harishd)

References

()

Details

(Keywords: regression, verifyme)

Attachments

(1 file)

This page loads (I think) but does not display. It does not crash, either. I tried going to File|View Source, but that only showed the DOCTYPE line (top line of the document, in this case). The page contains lots of CDO/CDC (<!--/-->) in a <STYLE> block, maybe that is what is confusing it. It was working fine before I added the extra CDO/CDC. If that is the problem, Peter Linss may be able to fix it.
Summary: Page does not display at all! → Page [with odd <!--/--> in STYLE] does not display at all!
Note. Fixing this bug is a prerequisite to verifying bug #2775.
As per recommendation from Peter Linss, here are some additional details. This is an extract from section 6.2 of the HTML4 spec. http://www.w3.org/TR/REC-html40/types.html#h-6.2 --------------- Additional Comments from the HTML 4.0 Specification --------------- STYLE and SCRIPT elements use CDATA for their data model [...]. Markup and entities must be treated as raw text and passed to the application as is. The first occurrence of the character sequence "</" (end-tag open delimiter) is treated as terminating the end of the element's content. In valid documents, this would be the end tag for the element. ----------- End of Additional Comments from the HTML 4.0 Specification ------------ Note that this means that <!-- and --> should *not* be parsed inside <STYLE> and <SCRIPT> blocks.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Cant get to the page you refer to. Please resubmit.
Status: RESOLVED → REOPENED
The uri is correct. I just checked it using Opera 3.51.
Resolution: INVALID → ---
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → FIXED
QA Contact: 4141
Status: RESOLVED → VERIFIED
This just broke again. Bug 26857 may be related.
Status: VERIFIED → REOPENED
Keywords: regression
Priority: P1 → P2
Resolution: FIXED → ---
Reassigning to myself.
Status: REOPENED → ASSIGNED
It's mine..I think....
Assignee: rickg → harishd
Status: ASSIGNED → NEW
Ian, could you provide me with a reduced case? Thanx
Status: NEW → ASSIGNED
*confused* Um, there may be a problem with that. I just rechecked it and it seems to be ok. Errr.... ??!?! Ok, I'll get back to you once I've crunched some more test cases...
I think this bug is invalid. But to be on the safer side..I'm going to disable CDO/CDC inside STYLE. Setting M16.
Target Milestone: --- → M16
What does disabling them inside of STYLE mean? They should not be treated as comments inside STYLE or SCRIPT...
In quirks mode I enabled CDO/CDC inside CDATA.and I would like it to be so only for contents within SCRIPT. Content inside STYLE ( and other CDATA section ) will be treated purely as CDATA. Does that answer you question?
Changes are in. FIXED ( killing a dead snake ).
Status: ASSIGNED → RESOLVED
Closed: 26 years ago24 years ago
Resolution: --- → FIXED
Keywords: verifyme
QA Contact: gem → py8ieh=bugzilla
Works for me. Verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: