Skip to content

Commit d651855

Browse files
committed
Clarify why script is not here
1 parent 9e9e158 commit d651855

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/jsoup/parser/Tag.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ public String toString() {
242242
};
243243
private static final String[] preserveWhitespaceTags = {
244244
"pre", "plaintext", "title", "textarea"
245+
// script is not here as it is a data node, which always preserve whitespace
245246
};
246247
// todo: I think we just need submit tags, and can scrub listed
247248
private static final String[] formListedTags = {

0 commit comments

Comments
 (0)