Johan, I am fairly sure I told you guys to use:

<!--/*--><![CDATA[/*><!--*/
body
/*-->]]>*/

        notice you use // instead of /* */ which is incorrect and might be
responsible for this problem.

Gili

Johan Compagner wrote:
> this is what we did get from the people who wants there pages completely
> xhtml.
> Because plain javascript is not possible then so you have to escape it.
> 
> johan
> 
> 
> On 5/26/06, *Wouter de Vaal* <[EMAIL PROTECTED]
> <mailto:[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 = 
> '/shop/app/admin/EditUsage/wicket:pageMapName/wicket-0';}
> 
> 
>     //--><!]]></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
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to