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>")
The select language plugin
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.
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.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
In fact frodeste is right.
is not valid XHTML.
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
Code: Select all
<form>
<input>
</form>
Code: Select all
<form>
<div><input></div>
</form>
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/
# 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/