JSFiddle - React, Tailwind, and code Playground
HTML
<!--
in IE you get the alert=3, in chrome|FF etc you get the alert=5 as expected.
remove the <P> and you get alert=5 also in IE??
-->
<P>
<FORM id=f action="#" method="post">
<INPUT type=hidden name=a value="1">
<INPUT type=hidden name=b value="2">
<INPUT name=c value="3">
</p>
<DIV>
<INPUT name=d value="0">
<INPUT name=e value="1">
</DIV>
</FORM>
JavaScript
$(document).ready(function() {
alert($('#f INPUT').length);
});