xhtml: Unable to generate valid HTML with radio buttons

Joachim Breitner mail at joachim-breitner.de
Thu Sep 9 06:16:02 EDT 2010


Hi,

the xhtml function "radio", like any other form widged generating
function, takes one parameter, which is used both for the name and for
the id. For the radio buttons, one usually has multiple widgets with the
same name. Having also the same id is invalid HTML.

Of course this can be avoided by changing the id or not using the
"radio" function. But I think it would be more sensible to change the
behavior of the form widgets to _not_ add the id attribute by
themselves.

Thanks,
Joachim

-- 
Joachim "nomeata" Breitner
  mail: mail at joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C
  JID: nomeata at joachim-breitner.de | http://www.joachim-breitner.de/
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/libraries/attachments/20100909/c19d80e2/attachment.bin


More information about the Libraries mailing list