W3C home > Mailing lists > Public > www-validator@w3.org > November 2007

Re: [VE][64] Nesting of Option and Span

From: Daniele Imperi - Web Designer <info@danieleimperi.it>
Date: Sat, 24 Nov 2007 12:32:13 +0100
Message-ID: <47480BBD.6090307@danieleimperi.it>
To: David Spector <w3c@springtimesoftware.com>
CC: www-validator@w3.org

I think you cannot insert a tag <span> within a tag <option>.

About line wrapping: can you show me an example, please?

> Error message:
>
> "Line 89, Column 40: document type does not allow element 'SPAN' 
> here." (error 64)
>
> Reported erroneous HTML line:
>
> <option value="PayPal" ><span class=nobr>PayPal (pay from your bank 
> account or credit card)</span></option>
>
> Doctype:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> Comment:
>
> What I want to do here is inhibit line wrapping within a displayed 
> option value in a Select control.
>
> David Spector
Received on Saturday, 24 November 2007 11:32:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:27 GMT