Hi everybody.
There seems to be a bug in the HTML parser of tdom.
When an option is pared, the content of the option element
is moved on output after the closing tag of option.
This happens with the actual check out version from cvs.
Below is a script to test.
-gn
#!/usr/local/bin/tclsh
lappend auto_path /usr/local/aolserver45/lib
puts tdom=[package require tdom]
set html {
<html> <head><title></title></head><body>
<form>
<select id="L" name="nls_language">
<option value="">--</option>
<option value="en_US" selected="on">en_US</option>
<option value="es_ES">es_ES</option>
<option value="de_DE">de_DE</option>
</select>
</form>
</body></html>
}
dom parse -simple -html $html doc
$doc documentElement root
puts [$root asHTML]
exit
############## The output of this script is below.
############## note, that the content of the options is moved after
the closing tag </option>
tdom=0.8.1
<html>
<head><title></title></head><body><form><select id="L"
name="nls_language">
<option value=""></option>--<option value="en_US"
selected="on"></option>en_US<option
value="es_ES"></option>es_ES<option
value="de_DE"></option>de_DE</select></
form></body>
</html>