Closed Bug 302806 Opened 19 years ago Closed 19 years ago

document.write of HTML with HTML comment starting in the HEAD section does not display anything

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: julien.lecomte, Unassigned)

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

Attached are 3 test cases. The first one works fine i.e. when you press the 
test button, the iframe shows the content correctly. In the second one, the 
iframe does not seem to display anything. If you refresh the page the content 
will appear !? The third test case is an HTML file which shows the content 
correctly when opened directly in Firefox.

Reproducible: Always
Attached file standalone HTML file
NB: Open the first attachment in IE6 SP2 and press the test button -> You get 
a nice crash!
(In reply to comment #4)
> NB: Open the first attachment in IE6 SP2 and press the test button -> You get 
> a nice crash!

It's invalid HTML, that never should but sometimes can crash a browser, if bugs
do allow this.

Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.8b4) Gecko/20050729 SeaMonkey/1.0a
did show all as intended, in Opera8.01 the first testcase didn't work.
It indeed is invalid HTML. I filed this bug because of the discrepency between 
test case #1 and what you see if you load the HTML file directly in the 
browser (it *should* be identical)

We found this bug when a customer of ours complained about an HTML email that 
was not being displayed...
Keywords: testcase
With Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716
Firefox/1.0.6
'Test case showing the problem': Clicking 'test' results in nothing being
displayed in the text area.
'Test case working correctly': Clicking 'test' results in 'yo' being displayed
in the text area.

With Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b4) Gecko/20050729
Firefox/1.0+ ID:2005072921
'Test case showing the problem': Clicking 'test' results in in 'yo' being
displayed in the text area.
'Test case working correctly': Clicking 'test' results in 'yo' being displayed
in the text area.

So I am thinking this bug is fixed on the trunk. Reporter, please try Deer Park
Alpha 2 (Firefox 1.5 alpha) and verify that this problem is fixed. Thanks!
Verified fixed using Deer Park Alpha 2 (Mozilla/5.0 (Windows; U; Windows NT 
5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+)
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Verified fixed.
Status: RESOLVED → VERIFIED
Fixed is only for bugs in which the code change which fixed the problem is
known. Reopening to resolve WFM. 

Also you should not verify your own bug resolutions, but leave it for someone
else to verify that the resolution was correct.
Status: VERIFIED → UNCONFIRMED
Resolution: FIXED → ---
WFM per comment 7 and 8
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: