Menu

#1 AccessViolationException thrown from tidyParseString

open
nobody
None
5
2007-05-02
2007-05-02
Anonymous
No

Malformed HTML can cause tidyParseString throws an AccessViolationException.

Such HTML is given below. The culprit is the extra </form> tag. Moreover, changing </form> to </p> or </div> or </span> or... makes the exception go away.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
<table>
<tr>
<td>
</form>
</td>
</tr>
</table>

</body>
</html>

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.