Why do you prefer:

name="foo \"whee \"bar"

to:

name='foo "whee" bar'

I think that the single quoted example is clearer,

Dion

ps. this is a v. minor thing.  I like the functionality.

> -----Original Message-----
> From: Brian Cole [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 18, 2001 8:58 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Input taglib: proposed enhancement
> 
> 
> 
> IMO, you would to ensure that escaping is done properly. I would 
> give the example as :
> 
> <input:text name="familyName" attributesText="size=\"20\"" 
> maxlength="20" class="inputgrey"'/> 
> The ugliness of this is a normal consequence of putting html into 
> jsp ; it's almost a convention :-)
> For what it's worth, I think it's a good idea, but obviously 
> people might abuse it by putting in things that ought to be real 
> attributes. No way to stop that ; but can be documented.
> And I'm not sure about the name, but haven't come up with a better one. 
> Brian
> 
> 
> >>> [EMAIL PROTECTED] 09/18/01 01:32pm >>>
> This message has been scanned by MAILSweeper.
> ************************************************************
> 
> 
> Hi all, 
> I have found the following enhancement to the input taglib quite 
> useful. It simplifies the addition of attributes to the <input> 
> tags by adding a tag attribute called "attributesText", this is a 
> text string that is just added verbatim into the <input> tag when 
> it is output.
> eg. 
> <input:text name="familyName" attributesText='size="20" 
> maxlength="20" class="inputgrey"'/> 
> I have already made the patches (very simple) to the source and 
> can send to someone if interested? 
> let me know 
> kind regards, 
> k@rl 
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **********************************************************************
> 

Reply via email to