Skip to content

Commit

Permalink
Support ComputedCSSStyleDeclaration when JS engine is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Oct 16, 2023
1 parent e9ea5d5 commit badaf30
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit badaf30

Please sign in to comment.