Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.68 KB

File metadata and controls

49 lines (38 loc) · 1.68 KB

ember/template-require-iframe-title

💼 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