code: @Override
    protected void visitIfNode(IfNode node) {
      IncrementalDomCodeBuilder jsCodeBuilder = getJsCodeBuilder();
      SanitizedContentKind currentContentKind = jsCodeBuilder.getContentKind();
  
      if (!isTextContent(currentContentKind)) {
        super.generateNonExpressionIfNode(node);
      } else {
        super.visitIfNode(node);
      }
    }
docs: Generates calls in HTML/Attributes content as non-JsExprs, since Incremental DOM instructions
  are needed and not a JavaScript expression.