Closed Bug 409218 Opened 17 years ago Closed 17 years ago

script tag in VALID XTHML shows as unclosed if you don't supply a </script> tag

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 162653

People

(Reporter: doon, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/523.10.5 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.5; en-US; rv:1.9b2) Gecko/2007121014 Firefox/3.0b2

A valid XHTML Doc (as verified by W3) causes it to read entire document as Javascript.    For example
<link rel="stylesheet" href="all.css" type="text/css" />
<script type="text/javascript" src="funcs.js" />
<script type="text/javascript" src="tp.js" />
<link rel="stylesheet" href="tp.css" type="text/css" />
.... rest of page

Will cause everything after the first script tag to be treated as script. 

Changing to 

<link rel="stylesheet" href="all.css" type="text/css" />
<script type="text/javascript" src="funcs.js"></script>
<script type="text/javascript" src="tp.js"></script>
<link rel="stylesheet" href="tp.css" type="text/css" />

fixes the issue.

but same code works fine On Firefox 2.x.




Reproducible: Always

Steps to Reproduce:
1.Create HTML file using <script src="foo.js" /> without the closing </script>  
Actual Results:  
Page Renders as blank, and viewing the DOM shows that all data after first script tag is being included as script.

Expected Results:  
Script tag should have been closed, and parsing/rendering should continue as normal
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.