Browsers have a high level of tolerance for what they can detect as errors (in Javascript, but also HTML, css, etc.). This is partly due to various conflicting "standards" :) about how Javascript was implemented. Something that appears OK in one browser causes problems with another. Therefore, when all these messages become visible, it should be a little discouraging.
To imagine this in perspective - in Internet Explorer go to your settings and check the "Advanced settings" for "Show notification of every error script", and then browse the same sites. You may be surprised at how much code IE gets by simply ignoring what it might detect as problems.
Using HtmlUnit in different browsers simply leads to coverage of some of these conflicts.
Telling HtmlUnit to do something like βIgnore ... for this browserβ is a perfectly good practice. In my case, I am citing data from a site that checks that all users are using Internet Explorer (no, I have no good idea why they are doing this), so I canβt continue without ignoring javascript errors. Interestingly, the site works fine, although IE believes there are a lot of Javascript errors.
Pete kelley
source share