Comment 7 for bug 302887

Revision history for this message
altonator (adam-alton) wrote :

Fred Drake: "the HTML parser conforms to the HTML DTD"

If that was the case then doing <span><ul></ul></span> would give the same error as <p><ul></ul></p>, as <span> is also an inline element. You would also expect the same from <a><ul></ul></a>, but again TAL raises no error.

TAL doesn't enforce the rules of the HTML DTD, apart from in this odd case.

It either needs to give errors for other invalid markup (as above) or not give an error for <p><ul></ul></p>. Being half and half is just annoying and very confusing.