Skip to content

Commit 4012213

Browse files
committed
DefaultUserAgent: HTML processing is now optional in XMLDocumentBuilder.
1 parent 8cee5e2 commit 4012213

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ public DOMDocument readURL(URL url) throws IOException, io.sf.carte.doc.Document
134134
parser.setReportingDoctype(true);
135135
parser.setCommentPolicy(XmlViolationPolicy.ALLOW);
136136
parser.setXmlnsPolicy(XmlViolationPolicy.ALLOW);
137+
builder.setHTMLProcessing(true);
137138
builder.setXMLReader(parser);
138139
} else {
139140
builder.setIgnoreElementContentWhitespace(true);

0 commit comments

Comments
 (0)