I would like to express my concern on how wicket currently outputs _javascript_, my page outputs this header:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"Now I'm no _javascript_ expert, but this seems quite strange to me. When I try to validate using Firefox's web developer (tools->validate local html),
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
< link href="/mycss.css" rel="stylesheet" type="text/css" media="all">
< script type="text/_javascript_" src="/shop/app/resources/wicket.markup.html.WebPage/cookies.js" ></script>
<script type="text/_javascript_"><!--//--><![CDATA[//><!--
var pagemapcookie = getWicketCookie('pm-null/shopShop4AllApplication');
if(!pagemapcookie && pagemapcookie != '1'){setWicketCookie('pm-null/myApplication',1);}
else {document.location.href = '';}
//--><!]]></script>
</head>
I get a validation error:
Error Line 14 column 6: end tag for "HEAD" which is not finished.
</head>
It looks to me that this originates from the strange (non-)nesting of the interesting comments+CDATA combination, because everything else seemds ok (right?).
I have no _javascript_ in my code/templates whatsoever.
I also changed everything to xhtml and I get the same error.
So, is it incorrect? If not, what's wrong then?
Thanx,
Wouter
