ember/template-require-iframe-title

April 25, 2026 ยท View on GitHub

๐Ÿ’ผ This rule is enabled in the ๐Ÿ“‹ template-lint-migration config.

<iframe>

<iframe> elements must have a unique title property so assistive technology can convey their content to the user. The normative requirement is WCAG SC 4.1.2 (Name, Role, Value); the title attribute is one sufficient technique for meeting it (sufficient technique H64).

Examples

This rule allows the following:

<template>
  <iframe title='This is a unique title' />
  <iframe title={{someValue}} />
</template>

This rule forbids the following:

<template>
  <iframe />
  <iframe title='' />
  <iframe title='   ' />
  <iframe title={{null}} />
  <iframe title={{undefined}} />
  <iframe title={{true}} />
  <iframe title={{false}} />
  <iframe title={{42}} />
</template>

References