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

From: Norman Gray (norman at astro.gla.ac.uk)
Date: Thu Apr 28 04:23:14 EDT 2011

On 2011 Apr 27, at 23:11, J G Cho wrote:

> I am trying to print:
> <div><input type="radio" name="n-4-answer" value="2" checked>the egg</div>

As other responders mentioned, this isn't valid XML.

For what it's worth, the nearest thing to a 'best practice' in this case is probably checked='checked'.  I can't recall chapter and verse (which in any case wouldn't really be relevant in an HTML world), but that's the nearest thing to the SGML pattern which preceded it.

Best wishes,


Norman Gray  :  http://nxg.me.uk

Posted on the users mailing list.