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

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Wed Apr 27 18:20:23 EDT 2011

On 04/27/2011 04:11 PM, J G Cho wrote:
> I am trying to print:
> <div><input type="radio" name="n-4-answer" value="2" checked>the egg</div>

I think you want this:

<input type="radio" name="n-4-answer" value="2" checked="checked" />

Google "HTML attribute minimization" for more information.


> 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.