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  
explicitly.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Thursday, 5 July 2007 07:46:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT