Returns the default maximum error count allowed when parsing attributes.
The system default value is 2.
When searching for start tags, the parser can find the end of the start tag only by
StartTagType#parseAttributes(Source,int,String)the attributes, as it is valid HTML for attribute values to contain '>' characters
(see the HTML 4.01 specification section 5.3.2).
If the source text being parsed does not follow the syntax of an attribute list at all, the parser assumes
that the text which was originally identified as the beginning of of a start tag is in fact some other text,
such as an invalid '<' character in the middle of some text, or part of a script element.
In this case the entire start tag is rejected.
On the other hand, it is quite common for attributes to contain minor syntactical errors,
such as an invalid character in an attribute name.
For this reason the parser allows a certain number of minor errors to occur while parsing an
attribute list before the entire start tag or attribute list is rejected.
This property indicates the number of minor errors allowed.
Major syntactical errors cause the start tag or attribute list to be rejected immediately, regardless
of the maximum error count setting.
Some errors are considered too minor to count at all (ignorable), such as missing white space between the end
of a quoted attribute value and the start of the next attribute name.
The classification of particular syntax errors in attribute lists into major, minor, and ignorable is
not part of the specification and may change in future versions.
Errors are
Source#getLogger() as they occur.
The value of this property is set using the
#setDefaultMaxErrorCount(int) method.