Closed Bug 264415 Opened 20 years ago Closed 20 years ago

Firefox interpret > as --> wich crashes script

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: more, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

The condition a>b in a java script is interpreted as comment end tag -->
and causes page to look funny

Reproducible: Always
Steps to Reproduce:
1.Reload
2.
3.



Expected Results:  
wait for end tag instead
<!--BEGIN One Time Pop-up Windows Script----------------------------------------->

This comment is invalid, so the code is not parsed as you expect.  You cannot
have -- in the body of a comment, because that opens/closes the comment.

See http://www.w3.org/TR/html401/intro/sgmltut.html#idx-HTML
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Summary: Firefox interpret > as --> wich crashes script → Firefox interpret > as --> wich crashes script
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.