[racket] xexpr to mark a radio button 'checked'

From: Nadeem Abdul Hamid (nadeem at acm.org)
Date: Wed Apr 27 18:19:24 EDT 2011

Try something like this, with a dummy value for the checked attribute:
`(div (input [(type "radio") (name "n-4-answer") (value "2") (checked "yes")]))

On Wed, Apr 27, 2011 at 6:11 PM, J G Cho <gcho at fundingmatters.com> wrote:
> I am trying to print:
> <div><input type="radio" name="n-4-answer" value="2" checked>the egg</div>
> The closest I can come up is:
> <div><input type="radio" name="n-4-answer"
> value="2">checked</input>the egg</div>
> Valid XML but not quite what a browser wants.
> Is this (the first line) possible with xexpr?
> jGc
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.