Closed Bug 282511 Opened 20 years ago Closed 19 years ago

Firefox incorrectly displays JavaScript when I visiting site forum.

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: kesic, Assigned: mrbkap)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru-RU; rv:1.7.5) Gecko/20041108 Firefox/1.0

Below the Internet of page hardwarelab.ru/forum at included JavaScript appears
the following message 11) d.write ('-' + '>') //->
JavaScript Console specifies a mistake - syntax error with the respective
reference, but the reference does not open in the console.

Reproducible: Always

Steps to Reproduce:
This is most probably an issue with the site's coding.
-> General
Assignee: bugs → firefox
Component: JavaScript Console → General
QA Contact: js-console → general
This is an automated message, with ID "auto-resolve01".

This bug has had no comments for a long time. Statistically, we have found that
bug reports that have not been confirmed by a second user after three months are
highly unlikely to be the source of a fix to the code.

While your input is very important to us, our resources are limited and so we
are asking for your help in focussing our efforts. If you can still reproduce
this problem in the latest version of the product (see below for how to obtain a
copy) or, for feature requests, if it's not present in the latest version and
you still believe we should implement it, please visit the URL of this bug
(given at the top of this mail) and add a comment to that effect, giving more
reproduction information if you have it.

If it is not a problem any longer, you need take no action. If this bug is not
changed in any way in the next two weeks, it will be automatically resolved.
Thank you for your help in this matter.

The latest beta releases can be obtained from:
Firefox:     http://www.mozilla.org/projects/firefox/
Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html
Seamonkey:   http://www.mozilla.org/projects/seamonkey/
This problem has remained also version 1.0.7 (russian).
If JavaScript is enable the script below page is incorrectly displayed. How it
looks 
11) d.write ('-' + '>') //->
This problem is not present neither in IE6 nor in Opera.
Attached file testcase
This is basically what the page is doing. In case anybody wonders about the weird 'if (2>1)' statement, it's just needed for the '>' character in it. This may be invalid, I'll send it to HTML: Parser for a final decision.
Assignee: firefox → mrbkap
Component: General → HTML: Parser
Product: Firefox → Core
QA Contact: general → parser
Version: unspecified → Trunk
This bug is INVALID.

The problem is that standards mode comment parsing is eating the <script>. After the first document.write(), we have the document
<!--
<script><!-- ...>1)...

which is really
<!--...-->1).
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: