xhtml: Unable to generate valid HTML with radio buttons

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@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C JID: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/ Debian Developer: nomeata@debian.org

Joachim,
I have created a Trac instance for assisting with the maintenance of
the xhtml package. Perhaps you could help by creating a new ticket
for the problem you describe below? I promise to look into the matter
when there is a ticket.
http://trac.haskell.org/xhtml/newticket
On 9 September 2010 07:16, Joachim Breitner
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@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C JID: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/ Debian Developer: nomeata@debian.org
-- Robin Bate Boerop

Hi, Am Dienstag, den 19.10.2010, 14:11 -0300 schrieb Robin Bate Boerop:
I have created a Trac instance for assisting with the maintenance of the xhtml package. Perhaps you could help by creating a new ticket for the problem you describe below? I promise to look into the matter when there is a ticket.
I just wanted to do so, but it seems that Paolo Veronelli was faster: http://trac.haskell.org/xhtml/ticket/1 Thanks, Joachim -- Joachim "nomeata" Breitner mail: mail@joachim-breitner.de | ICQ# 74513189 | GPG-Key: 4743206C JID: nomeata@joachim-breitner.de | http://www.joachim-breitner.de/ Debian Developer: nomeata@debian.org
participants (2)
-
Joachim Breitner
-
Robin Bate Boerop