diff --git a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java index 673ff488aef..a471bec79a7 100644 --- a/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java +++ b/src/main/java/org/htmlunit/html/serializer/HtmlSerializerNormalizedText.java @@ -201,8 +201,7 @@ protected void appendDomNode(final HtmlSerializerTextBuilder builder, final DomN if (!(domNode instanceof HtmlBody)) { final SgmlPage page = domNode.getPage(); final WebWindow window = page.getEnclosingWindow(); - if (page.getWebClient().isJavaScriptEngineEnabled() // TODO - && window.getWebClient().getOptions().isCssEnabled()) { + if (window.getWebClient().getOptions().isCssEnabled()) { if (domNode instanceof DomElement) { final String display = window.getComputedStyle((DomElement) domNode, null).getDisplay(); block = BLOCK.equals(display);