[Petal] attributes question

Paul Arzul patricka at mkdoc.com
Fri Jul 25 11:43:47 BST 2003


On Fri 25-Jul-2003 at 10:16:34AM +0100, Jean-Michel Hiver wrote:
> > Just after sending that patch it struck me that there's no way to start with
> > 
> > <a petal:attributes="attr value"/>
> > 
> > and get
> > 
> > <a attr=""/>
> > 
> > because if the string is empty then you'll get
> > 
> > <a/>
> > 
> > Shouldn't this only happen when value is undef?
> 
> I can't think of an instance where that behavior would be useful.

it's useful on alternate text for images, since:

- alternate text is mandatory (for validation), and
- alt="" is used for a lot of things including: decorations and
  supplimental images (bullets, etc.)

- p

1. http://www.htmlhelp.com/feature/art3.htm



More information about the Petal mailing list