Closed Bug 323736 Opened 20 years ago Closed 20 years ago

Bogus closing tag syntax comment parsed as an SGML comment

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: zcorpan, Assigned: mrbkap)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060116 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9a1) Gecko/20060116 Firefox/1.6a1 Comments that start with "</" should be parsed the traditional way, i.e. close the comment upon the first ">", rather than as an "SGML" comment. Reproducible: Always Steps to Reproduce: 1. Open data:text/html,<!DOCTYPE html><p></-->PASS<!-->FAIL<! --> 2. 3. Actual Results: There are two comments, ">PASS<!" and " --". Expected Results: </--> should be parsed as a bogus comment, containing "--".
added reporter's testcase into URL:
URL: data:text/html,<!DOCTYPE html><p></--...
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Priority: -- → P4
Hardware: PC → All
Target Milestone: --- → mozilla1.9alpha
Status: NEW → ASSIGNED
Attached patch Easy fix — — Splinter Review
This ensures that strict comments do really start with <!--. It also fixes an illegal use of |static NS_NAMED_LITERAL_STRING(...)|.
Attachment #208751 - Flags: superreview?(jst)
Attachment #208751 - Flags: review?(jst)
Comment on attachment 208751 [details] [diff] [review] Easy fix r+sr=jst
Attachment #208751 - Flags: superreview?(jst)
Attachment #208751 - Flags: superreview+
Attachment #208751 - Flags: review?(jst)
Attachment #208751 - Flags: review+
Fix checked into trunk.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: