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

(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 UTC