in reply to using HTML::Element with an attribute name without value

According to the HTML specs, <tag att> is equivalent to <tag att="att">. Also XHTML mandates lower-case tags (which incidentally, are easier to type). I guess you should go for ['img', { ismap => 'ismap' }] just to be on the safe side.

update: just FYI: XHTML doesn't allow attributes without values, so in XHTML you need to do att="att".

Replies are listed 'Best First'.
Re^2: using HTML::Element with an attribute name without value
by telcontar (Beadle) on Apr 09, 2005 at 16:09 UTC
    I didn't know that <tag att> was equivalent to <tag att="att">...

    That answers my question :-)

    Thank you.
    John