The select language plugin

Found a bug? Tell us!!
Post Reply
frodeste
Regular
Posts: 56
Joined: Thu Aug 04, 2005 9:16 pm
Location: Tønsberg, Norway
Contact:

The select language plugin

Post by frodeste »

Does not validate as correct XHTML 1.1:

Error Line 606, column 331: document type does not allow element "select" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag .

...entById('language_chooser').submit();"><option value="en" >English</option><o

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>")
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

Well, you should try HTML4.01 Transitional and it's mostly valid (the parser
has problems with /> tag ending and errorneously marks them as errors,
btw). The error from that XHTML 1.1 validator is saying <form> element
can't have <select> in there, but this is the normal way to make a listbox
form. In fact the XHTML 1.1 validator puts out that same error on all the
<form> elements in the other plugins, too, although they're all normal.
I make s9y plugins, too.
My s9y blog depends on them. :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

In fact frodeste is right.

Code: Select all

<form>
<input>
</form>
is not valid XHTML.

Code: Select all

<form>
<div><input></div>
</form>
is, though. I have just patched the plugin to reflect that. If you know of other plugins that do this inproperly, I would love to get a report on that so that I can fix it. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
frodeste
Regular
Posts: 56
Joined: Thu Aug 04, 2005 9:16 pm
Location: Tønsberg, Norway
Contact:

Post by frodeste »

garvinhicking wrote:In fact frodeste is right...
I'll report any if I can find them. :)
Post Reply