Closed
Bug 435609
Opened 18 years ago
Closed 18 years ago
Self-closing script tag annuls ensuing source
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 327796
People
(Reporter: benoit.barberousse, Unassigned)
Details
Attachments
(1 file)
|
324 bytes,
application/xhtml+xml
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0
Writing against XHTML 1.0 Strict, a self-closing script element in the head that externally references a javascript file (<script type=... src="..."/>) causes all the source that follows to no longer render. Only closing the self-closing element with the deprecated "</script>" corrects this. The XHTML 1.0 specification dictates that this element should be self-closing.
Reproducible: Always
Steps to Reproduce:
1.Reference an external javascript file with in the fashion of <script type="text/javascript" src="..."/>
2.
3.
Actual Results:
All ensuing source code does not render.
Expected Results:
Respected the self-closing element as per the XHTML 1.0 specification
Comment 1•18 years ago
|
||
If the server sends the document as a proper MIME type like application/xhtml+xml it will work. See the attachment. It will not work if the server sends the document as text/html because then the html parser is used.
Comment 2•18 years ago
|
||
If you want to use this syntax you have to serve the page as application/xhml+xml; otherwise, follow appendix C
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Comment 3•18 years ago
|
||
This is actually a dup of a newer (but also WONTFIX) bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•