dgraham 2003/01/19 22:04:48
Modified: doc/userGuide struts-html.xml
Log:
Updated docs for htmlComment and cdata attributes of javascript tag.
Revision Changes Path
1.49 +5 -5 jakarta-struts/doc/userGuide/struts-html.xml
Index: struts-html.xml
===================================================================
RCS file: /home/cvs/jakarta-struts/doc/userGuide/struts-html.xml,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- struts-html.xml 19 Jan 2003 00:40:41 -0000 1.48
+++ struts-html.xml 20 Jan 2003 06:04:47 -0000 1.49
@@ -3245,10 +3245,7 @@
<info>
<p>
If set to "true" and XHTML has been enabled, the JavaScript will
- be wrapped in a CDATA section to prevent XML parsing. Current
browsers
- don't support this convention, causing the scripts to fail. To
allow the
- script to work in current browsers as well as hide it from XML
parsers you
- need to set this attribute to "false" and htmlComment to "true".
The default is
+ be wrapped in a CDATA section to prevent XML parsing. The default
is
"true" to comply with the W3C's recommendation.
</p>
</info>
@@ -3331,7 +3328,10 @@
<info>
<p>
Whether or not to enclose the javascript
- with html comments.
+ with HTML comments. This attribute is ignored in XHTML
+ mode because the script would be deleted by the XML parser. See
+ the cdata attribute for details on hiding scripts from XML
+ parsers.
Defaults to <code>true</code>.
</p>
</info>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>