diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 8ca54b004b..7a70e603a7 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -708,8 +708,7 @@ export default class Element extends Node { if (!a11y_required_content.has(this.name)) return; if ( this.bindings - .map((binding) => binding.name) - .some((name) => ['textContent', 'innerHTML'].includes(name)) + .some((binding) => ['textContent', 'innerHTML'].includes(binding.name)) ) return; if (this.children.length === 0) {