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

(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