- From: K. Pudas <chrispudas@wp.pl>
- Date: Sun, 24 Jul 2005 13:57:23 +0000
- To: www-validator@w3.org
Hi, I have encountered an ?error? with the Markup-Validator.
I generate options for <select> </select> with javascript, so HTML source file
is composed only with:
<form name="some_form">
<select name="some_name" size='6" onChange="script_to_execute();"></select>
</form>
<script type="text/javascript">
opts = new Array();
opts[0]=new Option('lalala','1');
opts[1]=new Option('bum bum bum','2');
for(i=0;i<opts.length;i++)
{
document.some_form.some_name[i]=opts[i];
}
</script>
and The-Markup-Validator gives me error messages that my <select> is not finished:
---------------------------------------------------------------------------------------------------------------------------------
Below are the results of attempting to parse this document with an SGML parser.
Line 1521, column 92: end tag for "SELECT" which is not finished
... onChange="dopasuj_box_2();"></select></td>
Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
✉
Line 1525, column 122: end tag for "SELECT" which is not finished
...arz_wskazniki_dla_probki');"></select></td>
✉
Line 1529, column 102: end tag for "SELECT" which is not finished
...dopasuj_button_rejestruj();"></select></td>
---------------------------------------------------------------------------------------------------------------------------------
is it a problem with the validator, or just I can't change options dinamicaly.
Received on Sunday, 24 July 2005 17:08:58 UTC