validator = this.mainSchema.createValidator(jingPropertyMap);
if (this.hasHtml5Schema) {
Validator assertionValidator = assertionSchema.createValidator(jingPropertyMap);
validator = new CombineValidator(validator, assertionValidator);
validator = new CombineValidator(validator, new CheckerValidator(
new TableChecker(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new ConformingButObsoleteWarner(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new MicrodataChecker(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new NormalizationChecker(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new TextContentChecker(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new UncheckedSubtreeWarner(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new UnsupportedFeatureChecker(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new UsemapChecker(), jingPropertyMap));
validator = new CombineValidator(validator, new CheckerValidator(
new XmlPiChecker(), jingPropertyMap));
}
htmlParser = new HtmlParser();
htmlParser.setCommentPolicy(XmlViolationPolicy.ALLOW);