Skip to content

Commit c259cde

Browse files
committed
DefaultUserAgent: reportingDocType defaults to true, no need to set it.
1 parent a948e91 commit c259cde

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/io/sf/carte/doc/agent/net/DefaultUserAgent.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public DOMDocument readURL(URL url) throws IOException, io.sf.carte.doc.Document
131131
XMLDocumentBuilder builder = new XMLDocumentBuilder(domImpl);
132132
if (isHtml) {
133133
HtmlParser parser = new HtmlParser(XmlViolationPolicy.ALTER_INFOSET);
134-
parser.setReportingDoctype(true);
135134
parser.setCommentPolicy(XmlViolationPolicy.ALLOW);
136135
parser.setXmlnsPolicy(XmlViolationPolicy.ALLOW);
137136
builder.setHTMLProcessing(true);

0 commit comments

Comments
 (0)