No error for improperly closed <script> tag

Recently came across an issue with a script tag that it seems like the
validator should have caught.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="">


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />



Wrong: <script type="text/javascript" src="script.js
?FIORG=592&amp;FIFID=091901215> "/>

Right: <script type="text/javascript" src="script.js
?FIORG=592&amp;FIFID=091901215> "></script>


This may be valid XHTML but caused pages to not display at all in
Firefox and IE and everything on the page validated. Perhaps if the
XHTML is actually valid, a warning could be displayed?


The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

Received on Thursday, 13 January 2011 17:38:35 UTC