external javascript files cause page to fail to render

Bug #182227 reported by Bryce Harrington
6
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Won't Fix
Medium
firefox-3.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox-3.0

The following example shows a discrepancy when viewed in firefox 2 vs firefox 3.

  http://people.ubuntu.com/~bryce/tmp/firefox-3-js-issue.html

The file includes an external javascript .js file, using the following syntax:

  <script src="firefox-3-js-issue.js" />

pitti and cjwatson noticed that http://people.ubuntu.com/~bryce/Plots/plots-0.7.html does not render in FF3. Once I inlined all the javascript it began working: http://people.ubuntu.com/~bryce/Plots/

Revision history for this message
Kjell Braden (afflux) wrote :

Could this be related to a missing doctype? I'm not sure if the shorttag syntax (<foo />) has to be interpreted correctly when in Quirks mode. (see also: http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fpeople.ubuntu.com%2F~bryce%2Ftmp%2Ffirefox-3-js-issue.html)

Revision history for this message
Florian Zeitz (florian-zeitz) wrote :

Actually it's not only that the doctype is missing from http://people.ubuntu.com/~bryce/tmp/firefox-3-js-issue.html, but this page doesn't even have a root-element (should be a <html xmlns="http://www.w3.org/1999/xhtml">-tag in this case).
http://people.ubuntu.com/~bryce/Plots/plots-0.7.html has a root-element, but it doesn't specify the xmlns, which probably causes <bar />- tags to be misinterpreted.
I have had the experience that a doctype is not absolutely necessary in most browsers, but nonetheless it's required by the W3C specification (http://www.w3.org/TR/xhtml11/conformance.html#s_conform).
I think it is relatively likely that this is caused by quirks-mode. I have often had cases (mostly in IE that doesn't really like XHTML) where <script /> tags spanned the whole rest of the document, which lead to empty pages and other interesting results.

Revision history for this message
Fabien Tassin (fta) wrote :

<script/> is not proper HTML. See https://bugzilla.mozilla.org/show_bug.cgi?id=412114

Changed in firefox-3.0:
status: New → Invalid
Changed in firefox:
status: Unknown → Won't Fix
Revision history for this message
Hemel (morvan) wrote :

I have a bug on my school schedule. There is an external javascript inside and it doesn't launch. The address is : http://edt.polytech.unice.fr .

I think that the javascript should be started with this line <script src="Accueil-24152.js"></script>. Is it missing something on the page ? or is it a real bug on Firefox 3 ?

Changed in firefox:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.