Hi,
I have an HTML form named testForm, with a hidden input named testInput, and testing the presence of that input with testForm.hasOwnProperty("testInput") returns false when run in HtmlUnit. In browsers, it returns true.
I have tested with both HtmlUnit 2.70 and 3.0.0, and hasOwnProperty() returns false with both versions. With 3.0.0, I have the additional issue that the test 'testForm.testInput !== undefined' also returns false. It returns true in HtmlUnit 2.70.
I have attached the HTML page, as well as a Unit test showing the issues.
Thanks,
Gilles
BugReport hasOwnProperty.zip