1. Use CDATA to hide the javascript and make it completely useless in current browsers.
2. Use a comment to hide the javascript which allows current browsers to work and xml parsers.
The xhtml spec does suggest using CDATA but I don't see a reason the comment method won't work.
Dave
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
To: Struts Developers List <[EMAIL PROTECTED]>
Subject: Re: cvs commit: jakarta-struts/src/share/org/apache/struts/taglib/html JavascriptValidatorTag.java
Date: Wed, 15 Jan 2003 22:22:50 -0800 (PST)
On 16 Jan 2003 [EMAIL PROTECTED] wrote:
> Date: 16 Jan 2003 03:55:09 -0000
> From: [EMAIL PROTECTED]
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: cvs commit:
> jakarta-struts/src/share/org/apache/struts/taglib/html
> JavascriptValidatorTag.java
>
> dgraham 2003/01/15 19:55:09
>
> Modified: src/share/org/apache/struts/taglib/html
> JavascriptValidatorTag.java
> Log:
> Removed generation of CDATA section for xhtml. Using html comments works
> better.
>
According to the XHTML spec this is a *really* bad idea. Broken browsers
are no excuse for Struts to generate markup that violates the
recommendations of the standards.
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>