It's really weird because all of my wicket 1.2 pages with that the same _javascript_ are valid HTML 4.01 and XHTML. It works for me, but not for you. That's weird :)

On 5/26/06, Wouter de Vaal <[EMAIL PROTECTED]> wrote:
Hi,

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"

" 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>
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),
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


Reply via email to