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

Just popping when generating implied end tags (detailed review of parsing algorithm)

From: Henri Sivonen <hsivonen@iki.fi>
Date: Thu, 5 Jul 2007 10:46:11 +0300
Message-Id: <75E1028D-AC09-4AAD-A627-506A0C06440F@iki.fi>
To: "public-html@w3.org WG" <public-html@w3.org>

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

The spec says:
> When the steps below require the UA to generate implied end tags,  
> then, if the current node is a dd element, a dt element, an li   
> element, a p element, a tbody element, a td element, a tfoot  
> element, a th element, a thead element, a tr element, the UA must  
> act as if an end tag with the respective tag name had been seen and  
> then generate implied end tags again.

As far as I and, judging from source comments and IRC remarks, the  
authors of html5lib can tell, "act as if an end tag with the  
respective tag name had been seen" simplifies to "pop the current  
node off the stack of open elements". If this is indeed the case, the  
spec should just say so. If this is not the case, the difference  
appears to be too subtle for implementors and should be called out  

Henri Sivonen
Received on Thursday, 5 July 2007 07:46:27 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:16 UTC