Avoid duplicate hidden input in 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>