The closing of script tags

Date:

Tags:

I found a bug in my HTML code today running Firefox 3. <script> tags must supposedly be closed by a </script> and not by the less verbose but obviously wrong <script/>, as explained in this dismissed bug report.

If you insist on using <script/> FF3 will punish you with a blank page caused by the body tag being self closed, <body/>. Sort of: “You close your script tags like that - I’ll close your damn body tag like that. Now, how do you like that???”

I had no clue. Sorry.