lxml - the Python XML toolkit

Comment 10 for bug 315511

On Tue, Apr 7, 2009 at 11:43 PM, Ian Bicking wrote:

> but it doesn't know that a <div> inside a <p> is invalid, and
> that's a tricky rule to get in there.  Heck, that's a rule I forget
> frequently.

And is not entirely accurate, if by inside you mean a descendent
element: both <div> and <p> can appear inside <object> in HTML 4.01,
and <object> can appear inside <p>, so the following are valid:


Sean B. Palmer, http://inamidst.com/sbp/