changed it.

On 5/26/06, cowwoc <[EMAIL PROTECTED]> wrote:

        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="" rel=
>     "stylesheet"
>     type="text/css" media="all">
>       <
>     script type="text/_javascript_" src=""
>     ></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