On Fri, 17 Jan 2003, David Graham wrote:
> Date: Fri, 17 Jan 2003 08:35:48 -0700 > From: David Graham <[EMAIL PROTECTED]> > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: RE: xhtml javascript hiding methods > > My mail doesn't seem to be sending but I'll try anyway... > > The tags do not output the language script attribute when xhtml is enabled. > Also, we're not generating incorrect xhtml. You can have the choice of how > to hide the js from an xml parser. Either use a comment or a CDATA section. > >From the XML perspective, using comments is hopelessly broken -- any XML preprocessing or postprocessing you do to the source of a page (say, with a Filter) will cause the script contentes to disappear. The XHTML 1.0 spec is at: http://www.w3.org/TR/xhtml1/ and Section 4.8 documents that you're supposed to use CDATA. Regarding the JavaScript code generated by the validator, the right answer is to use external script pages -- like we do in the example webapp. > David > Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>