Change several "raise HTMLParseError" statements into assertions, as
these are really complaints about the intgrity of our own code. HTMLParseError should be raised only for invalid input. (Should we turn more unrecognized constructs into exceptions, e.g. '&' not followed by an entity or character reference?) Also added an 'r' prefix to a regex string containing a backslash.
Showing
Please register or sign in to comment