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

[VE][64] Nesting of Option and Span

From: David Spector <w3c@springtimesoftware.com>
Date: Fri, 23 Nov 2007 17:25:10 -0500
Message-ID: <014a01c82e1f$b77cea60$0201a8c0@SYS3>
To: <www-validator@w3.org>

W3C Validation Service,

1. I don't understand what is causing this error in my
HTML and I don't know how to fix it.

2. The error message (see below) shown on page
http://validator.w3.org/check is not helpful. Can you
improve it?

Details:

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:17:36 GMT

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