Bugzilla – Bug 664
Incorrect documentation of HtmlParser's defaults
Last modified: 2009-11-23 17:17:40 CET
The Javadoc for HtmlParser states: "By default, when using the constructor without arguments, the this parser coerces XML 1.0-incompatible infosets into XML 1.0-compatible infosets. This corresponds to <code>ALTER_INFOSET</code> as the general XML violation policy." Yet the default default constructor looks like this: /** * Instantiates the parser with a fatal XML violation policy. * */ public HtmlParser() { this(XmlViolationPolicy.FATAL); } I believe these two statements are in conflict.