Skip to content

Commit 77bfcc4

Browse files
committed
ups
1 parent e5c1561 commit 77bfcc4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/htmlunit/html/parser/neko/HtmlUnitNekoDOMBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,11 @@ private void handleCharacters() {
546546
final String textValue = characters_.toString();
547547
characters_.clear();
548548

549+
if (org.apache.commons.lang3.StringUtils.isBlank(textValue)) {
550+
appendChild(currentNode_, new DomText(page_, textValue));
551+
return;
552+
}
553+
549554
// malformed HTML: </td>some text</tr> => text comes before the table
550555
if (currentNode_ instanceof HtmlTableRow) {
551556
final HtmlTableRow row = (HtmlTableRow) currentNode_;

0 commit comments

Comments
 (0)