W3C home > Mailing lists > Public > public-html@w3.org > July 2007

<p><table> parsing (detailed review of parsing algorithm)

From: Simon Pieters <simonp@opera.com>
Date: Wed, 25 Jul 2007 12:08:45 +0200
To: public-html <public-html@w3.org>
Message-ID: <op.tv0mgvkfidj3kv@hp-a0a83fcd39d2>

(This is part of my detailed review of the parsing algorithm.)


Before Acid2, AFAIK, only Mozilla parsed <p><table> as <p></p><table>, and  
only in standards mode.

Now, as a result of Acid2, Opera does the same as Mozilla, and Safari too  
but also in quirks mode.

I think having parsing differences between quirks mode and standards mode  
is a bad thing. If the quirks mode behavior is required for compat (which  
it probably is), then I think we should always parse it the traditional  
way. Doing so would also align with IE7.

Thus I suggest that the first paragraph be dropped in:

    A start tag whose tag name is "table"
       If the stack of open elements has a p element in scope, then act as
       if an end tag with the tag name p had been seen.

       Insert an HTML element for the token.

       Change the insertion mode to "in table".

Simon Pieters
Opera Software
Received on Wednesday, 25 July 2007 10:08:54 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:24 UTC