xhtml: Unable to generate valid HTML with radio buttons

Robin Bate Boerop robin at bateboerop.name
Tue Oct 19 13:11:37 EDT 2010


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 <mail at joachim-breitner.de> wrote:
> 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

-- 
Robin Bate Boerop


More information about the Libraries mailing list