Parsing: nested forms

The way HTML 5 currently defines how to parse nested forms works for the  
following cases:

   <form><form></form>X</form>
   "X" is not in the form

   <form><x><form></form>X</x></form>
   "X" is not in the form. <x> is closed by the first </form>.

It does not work on pages nested form elements inside interleaved with  
"block-level elements":

   <form><h1><form></form>X</h1></form>
   "X" should be in the form, but is not.

   <form><div><form></form>X</div></form>
   "X" should be in the form, but is not.

Firefox and WebKit both seem to have some kind of "block-level scoping"  
that makes them handle those cases as Web pages expect. HTML 5 needs  
something similar.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Monday, 3 March 2008 11:23:33 UTC