Fix a parsing issue with input tags directly inside tables

Using the following html result in duplicate input tag after parsing
<html>
<body>
<input type="hidden" name="a" value="">
<table>
<input type="hidden" name="b" value="" />
</table>
</body>
</html>