W3C home > Mailing lists > Public > www-validator@w3.org > January 2011

No error for improperly closed <script> tag

From: Schneider, Cody <Cody.Schneider@fisglobal.com>
Date: Thu, 13 Jan 2011 10:54:18 -0600
Message-ID: <4B5CC2B171160541B7599CB452A829AB0173CD81@CMBFISLTC07.FNFIS.COM>
To: <www-validator@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:45 GMT