[imps] <div></form>

Ian Hickson ian at hixie.ch
Wed Apr 2 17:52:31 PDT 2008


On Wed, 2 Apr 2008, Henri Sivonen wrote:
>
> Data:
> <!doctype html><form><div></form><div>
> Expected:
> | <!DOCTYPE html>
> | <html>
> |   <head>
> |   <body>
> |     <form>
> |       <div>
> |         <div>
> Got:
> | <!DOCTYPE html>
> | <html>
> |   <head>
> |   <body>
> |     <form>
> |       <div>
> |     <div>
> Expected errors:
> Line: 1 Col: 33 End tag (form) seen too early. Ignored.
> Line: 1 Col: 38 Expected closing tag. Unexpected end of file.
> Actual errors:
> 33: End tag “form” seen but there were unclosed elements.
> 39: End of file seen and there were open elements.
> 
> Can someone, please, explain to me, we the test case ignores the </ 
> form> tag? <div> is not scoping per spec, so there is a <form> in scope 
> to close.

This part of the spec changed recently, IIRC. Maybe the test wasn't 
updated?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the Implementors mailing list