For example,
<script type="text/_javascript_">
//<![CDATA[
function isXhtmlFriendly() {
alert('Yes, I am XHTML friendly');
alert('quotes ", less than <, and ampersand & used in this _javascript_ code do not yield to XHTML validation error');
}
//]]>
</script>
The opening and closing CDATA inside the <script> tag do not affect the _javascript_ code because it is _javascript_-commented.
It is a w3c recommendation that we enclose the _javascript_ code inside CDATA if the document type is xhtml. Please see http://www.w3.org/TR/xhtml1/#h-4.8
I really need to make all my html pages to be valid XHTML because my moron boss requires it. It will be an advance christmas gift for me if this issue be fixed in Wicket-1.2final. Thanks to all.
On 4/17/06, Johan Compagner <[EMAIL PROTECTED]> wrote:
we should add it everywhere:
http://www.w3schools.com/tags/tag_script.asp
it is a required tag.
And language is depricated and shouldn't be used.
johanOn 4/17/06, Juergen Donnerstag < [EMAIL PROTECTED]> wrote:Searching through the code there are quite some locations where we
just do <script>
Juergen
On 4/17/06, Mark Derricutt < [EMAIL PROTECTED]> wrote:
> language="text/_javascript_"???? I hope thats just a major typo from
> type="text/_javascript_" ?
>
>
> On 4/17/06, Johan Compagner < [EMAIL PROTECTED] > wrote:
> >
> > that can't be done.
> > Because if i do this:
> >
> > <script language="
> > text/_javascript_">
> > var pagemapcookie = getWicketCookie('pagemap-null');
> > if(!pagemapcookie && pagemapcookie !=
> '1'){setWicketCookie('pagemap-null',1);}
> > else {
> > document.location.href
> > =
> '/wicket/niceurl/the/homepage/path/wicket:pageMapName/wicket-0';}
> > </script>
> > then the script is not executed. That can only be used for including a
> script file.
> >
> >
> > johan
> >
> >
>
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
