Hi,

When i do this in a panels html:

<html>
<wicket:head>
<script>
function test()
{
        var x = 10;
       if (x < 10 && x > 10) {}
}
</script>
</wicket:head>
<body>
<wicket:panel>body</wicket:panel>
</body>
</html>

then with normal rendering it works fine no problem
But if i then render it through ajax we suddenly have a problem in IE
because it sees < or > because somehow it parses to script.

so we have to do this:

 <html>
<wicket:head>
<script>
<!--/*--><![CDATA[/*><!--*/
function test()
{
        var x = 10;
       if (x < 10 && x > 10) {}
}
/*-->]]>*/
</script>
</wicket:head>
<body>
<wicket:panel>body</wicket:panel>
</body>
</html>

then it works, This is a bit annoying that you have to do that by yourself.
So would it be possible to do this for them when we do the markup parsing?

johan

Reply via email to