diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index d75f3b040e..c2003e1ce2 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -519,7 +519,7 @@ export default class Element extends Node { } } - if (this.is_media_node()) { + if (this.name === 'video') { if (attribute_map.has('muted')) { return; } @@ -533,7 +533,7 @@ export default class Element extends Node { if (!has_caption) { component.warn(this, { code: 'a11y-media-has-caption', - message: 'A11y: Media elements must have a ' + message: 'A11y: