[whatwg] Scoping elements and nested paragraphs

Darin Adler darin at apple.com
Wed Nov 12 10:08:55 PST 2008


On Nov 12, 2008, at 1:49 AM, Tommy Thorsen wrote:

> Consider the following markup:
>   <p><object><p>X</p></p>
>
> The html5 parsing algorithm produces the following tree:
>   <html><head></head><body><p><object><p>X</p><p></p></object></p></ 
> body></html>
>
> whereas Firefox and Opera both produce:
>   <html><head></head><body><p><object><p>X</p></object></p></body></ 
> html>
>
> and IE produces:
>   <html><head></head><body><p><object></object></p></body></html>

For what it's worth, WebKit produces a DOM matching the HTML 5 parsing  
algorithm result above.

     -- Darin




More information about the whatwg mailing list