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"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

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

<title>Title</title>

 

Wrong: <script type="text/javascript" src="script.js
<https://cibng.ibanking-services.com/cib/CEBMainServlet/SplashPageScript
?FIORG=592&amp;FIFID=091901215> "/>

Right: <script type="text/javascript" src="script.js
<https://cibng.ibanking-services.com/cib/CEBMainServlet/SplashPageScript
?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