You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Graham <dg...@hotmail.com> on 2003/01/15 17:48:34 UTC
xhtml javascript WAS: html:text tags are slightly broken.
On a related topic...
Currently, if you set xhtml="true" the <html:javascript> tag will enclose
the js in a CDATA section to conform with the xhtml spec. Unfortunately
this makes the script unusable in browsers.
I'm thinking about adding a boolean attribute to the javascript tag called
xhtmlStrict. If set to true, it would use a CDATA section; if false it
wouldn't. The default would be false to allow maximum useability while
still allowing you to conform to xhtml.
Thoughts on the attribute name/idea in general are welcome.
David
>From: "Raible, Matt" <Ma...@cable.comcast.com>
>Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
>To: "'Struts Users Mailing List'" <st...@jakarta.apache.org>
>Subject: RE: html:text tags are slightly broken.
>Date: Wed, 15 Jan 2003 09:11:20 -0700
>
>This has been fixed in Struts 1.1b3 - you can enable this using either of
>the following:
>
><html:html xhtml="true">
>
>or on your included pages:
>
><html:xhtml />
>
>One thing to note is that it doesn't do XHTML 1.0 Strict as it still used
>the attribute "name" in a form.
>
>HTH,
>
>Matt
>
>-----Original Message-----
>From: julian green [mailto:julian.green@jacobsrimell.com]
>Sent: Wednesday, January 15, 2003 9:20 AM
>To: Struts Users Mailing List
>Subject: html:text tags are slightly broken.
>
>
>The html generated by the html:text tag is html compliant, but not XML
>compliant. It is missing a closing </input>.
>
>This does not pose a problem if the output of the jsp is rendered by a
>browser, but I am using XSLT to decorate the page before the browser
>sees it. This tag therefore generates XML errors during the
>translation phase.
>
>Although I now have a work around (dont use the html:text tag) the tag
>is still broken. Can someone suggest a better work around?
>
>Example output produces by the struts-example login.jsp page:
>
><input type="text" name="username" maxlength="16" size="16" value="">
>
>generated by
>
><html:text property="username" size="16" maxlength="16"/>
>
>Julian
>
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>
>
>--
>To unsubscribe, e-mail:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
_________________________________________________________________
The new MSN 8 is here: Try it free* for 2 months
http://join.msn.com/?page=dept/dialup
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>