HTML -> isHtml in another spot in idom src generator
GITHUB_BREAKING_CHANGES=N/A
@@ -86,7 +86,7 @@ public class IncrementalDomTranslateExprNodeVisitor extends TranslateExprNodeVis
.map(type -> ((TemplateType) type).getContentKind())
.collect(toImmutableSet()))
.getSanitizedContentKind();
- if (kind == SanitizedContentKind.HTML || kind == SanitizedContentKind.ATTRIBUTES) {
+ if (kind.isHtml() || kind == SanitizedContentKind.ATTRIBUTES) {
return BIND_TEMPLATE_PARAMS_FOR_IDOM.call(template, paramRecord);
} else {
return super.genCodeForBind(template, paramRecord, templateType);
@@ -110,7 +110,7 @@ public class IncrementalDomTranslateExprNodeVisitor extends TranslateExprNodeVis
/** Types that might possibly be idom function callbacks, which always need custom truthiness. */
private static final ImmutableSet<Kind> FUNCTION_TYPES =
- Sets.immutableEnumSet(Kind.HTML, Kind.ATTRIBUTES, Kind.UNKNOWN, Kind.ANY);
+ Sets.immutableEnumSet(Kind.HTML, Kind.ELEMENT, Kind.ATTRIBUTES, Kind.UNKNOWN, Kind.ANY);
@Override
protected Expression maybeCoerceToBoolean(SoyType type, Expression chunk, boolean force) {
