NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 664 - Incorrect documentation of HtmlParser's defaults
Incorrect documentation of HtmlParser's defaults
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: HTML parser
HEAD
All All
: P2 minor
Assigned To: Nobody
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-06 00:51 CEST by Pavol Vaskovic
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavol Vaskovic 2009-10-06 00:51:06 CEST
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.