Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 937 Bytes

require-iframe-title.md

File metadata and controls

32 lines (21 loc) · 937 Bytes

require-iframe-title

✅ The extends: 'recommended' property in a configuration file enables this rule.

<iframe>

<iframe> elements must have a unique title property to indicate its content to the user.

This rule takes no arguments.

Examples

This rule allows the following:

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

This rule forbids the following:

<iframe />
<iframe title="" />

References