Closed Bug 448389 Opened 16 years ago Closed 16 years ago

script tag bug: firefox 3.0.1 doesn't recognize xhtml empty script elements

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 327796

People

(Reporter: balazs.herczeg, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1 Firefox 3.0.1 doesn't recognize empty short tags: <script type="text/javascript" src="path_to_my/script.js" /> Page won't be shown, everything after the first script element without closing tag will be ignored. Reproducible: Always Steps to Reproduce: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>script tag bug</title> <!-- call remote script file like this --> <script type="text/javascript" src="path_to_my/script.js" /> <!-- with no separate closing tag --> </head> <body> <p>If you use FF3, this text won't be shown.</p> </body> </html> Actual Results: Page not shown, everything after the first empty script element will be ignored. Expected Results: Normal output. If you use FF3, this text won't be shown. Using syntax with closing tags for the script element: <script type="text/javascript" src="path_to_my/script.js"></script> everything is fine, but it really should work with the xhtml recommended empty tags as well.
Are you using the XHTML or HTML mime type when serving the page? Probably a duplicate of bug 327796
Yes, it is a duplicate. I am using XHTML served as text/html (I know bad-bad.)
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.