Untitled

Submitted by reeses on Sat, 2002-09-14 04:34.

A guy on the team wasted a few hours yesterday, and several hours today tracking down idiosyncratic behavior between a browser and HttpUnit, and how they handled a test form. Apparently, HttpUnit uses JTidy, which will not parse invalid HTML that would otherwise make it past a browser. So, if your HTML is not a valid tree, and elements span inappropriate lexical boundaries (such as having a form begin in a table and end outside it), it'll puke on you.


Which is as it should, being a unit-testing framework. However, it should tell you.


And it will, if you call HttpUnitOptions.setParserWarningsEnabled( true ).

Post new comment

Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.