Page 1 of 1

The select language plugin

Posted: Thu Aug 18, 2005 11:53 pm
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>")

Posted: Fri Aug 19, 2005 4:15 am
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.

Posted: Fri Aug 19, 2005 1:27 pm
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

Posted: Sat Aug 20, 2005 10:43 pm
by frodeste
garvinhicking wrote:In fact frodeste is right...
I'll report any if I can find them. :)