Skip to content

Commit 1c13615

Browse files
committed
Configure DefaultUserAgent to not ignore comments in HTML documents.
(cherry picked from commit f556555)
1 parent 7814773 commit 1c13615

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
@@ -131,6 +131,7 @@ public DOMDocument readURL(URL url) throws IOException, io.sf.carte.doc.Document
131131
DocumentBuilder builder;
132132
if (isHtml) {
133133
builder = new HtmlDocumentBuilder(domImpl);
134+
((HtmlDocumentBuilder) builder).setIgnoringComments(false);
134135
} else {
135136
XMLDocumentBuilder xmlbuilder = new XMLDocumentBuilder(domImpl);
136137
xmlbuilder.setIgnoreElementContentWhitespace(true);

0 commit comments

Comments
 (0)