Closed Bug 567745 Opened 15 years ago Closed 15 years ago

"--- END" characters sequence resulting HTML code into comments

Categories

(Firefox :: General, defect)

3.5 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: minesh.bhatiya, Unassigned)

Details

(Keywords: html4)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 When I try to put "--- END" characters on my page (ignore double quotes surrounding) it behaves very strangely, firefox version 3.5.2 1) I use inside comments , like <!-- XYZ section --- END --> and I found my comment section was not closed as expected and instead it blocked lots of lines of HTML 2) I use --- END inside HTML just to check its behavior and I found that the HTML line just after that was <table > which is shown as commented in view source, and that broke HTML of the page Reproducible: Always Steps to Reproduce: When I try to put "--- END" characters on my page (ignore double quotes surrounding) it behaves very strangely, firefox version 3.5.2 1. I use inside comments , like <!-- XYZ section --- END --> and I found my comment section was not closed as expected and instead it blocked lots of lines of HTML 2. I use --- END inside HTML just to check its behavior and I found that the HTML line just after that was <table > which is shown as commented in view source, and that broke HTML of the page
Keywords: html4
Version: unspecified → 3.5 Branch
Don't use more than 2 hypens inside a comment - due to the SGML rules, this can create unexpected results. http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4 https://bugzilla.mozilla.org/show_bug.cgi?id=214476#c4 It will be fixed in Firefox 3.7, which uses the HTML5 parser, not the HTML4 one.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.