HTMLParser is allowed to be more strict than sgmllib, so let's not
change their basic behaviors: When parsing something that cannot possibly be valid in either HTML or XHTML, raise an exception.
Showing
Please register or sign in to comment