From: Marc G. <mgu...@ya...> - 2008-02-22 10:33:53
|
Hi, nested forms are not valid html code but are handled (differently) by browsers. Given following html code: -------------------- <body> <form name="form1"> <input name="first"/> <form name="form2"> <input name="in2"> </form> <input name="in1_after2"> </form> </body> -------------------- Firefox builds this: -------------------- <BODY> <FORM name='form1'> <INPUT name='first'/> <INPUT name='in2'/> </FORM> <INPUT name='in1_after2'/> </BODY> -------------------- and IE6 builds this: -------------------- <BODY> <FORM name='form1'> <INPUT name='first'/> <FORM name='form2'/> <INPUT name='in2'/> </FORM> <INPUT name='in1_after2'/> </FORM/> </BODY> -------------------- (yes, with this strange "/form" element) Currently NekoHtml closes the first <form> when it encounters the second <form> what doesn't express any of the browsers behaviors. Should we map NekoHtml behavior to FF's one? Should we give the possibility to NekoHtml uses to configure the Element settings? Cheers, Marc. -- Blog: http://mguillem.wordpress.com |