Closed Bug 477200 Opened 16 years ago Closed 14 years ago

comment ends when commenttag is a single >

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: celaz, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.5) Gecko/2008121622 Ubuntu/8.10 (intrepid) Firefox/3.0.5 as you can see in the source-code of the url above, the comment ends when the string ">" is at the end .. normally this should be "-->", aint it? Reproducible: Always Steps to Reproduce: 1. write lorem ipsum 2. comment some parts out 3. close one line only with > Expected Results: dont comment it out
Selecting all the text and "View selection source" has the --> at the end, so it looks like the parser adds it automatically. Now looking for an existing bug covering this behaviour.
as long as -- exists later on the page, the > is ignored in strict mode. This doesn't happen in quirks mode.
"as long as -- exists later on the page, the > is ignored in strict mode. " The above can be problematic. It's possible that the two dashes will be used in the content that a user is commenting out: " Hello, my name is John <br /> <!-- hello --John --> <br /> Bye " the above would be printed as: " Hello, my name is John --> Bye "
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: