Skip to content

Commit

Permalink
[Fix] no-unknown-property: Mark onLoad/onError as supported on iframes
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Sep 5, 2022
1 parent 7ba7ec4 commit 89da124
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/no-unknown-property.js
Expand Up @@ -68,8 +68,8 @@ const ATTRIBUTE_TAGS_MAP = {
onEmptied: ['audio', 'video'],
onEncrypted: ['audio', 'video'],
onEnded: ['audio', 'video'],
onError: ['audio', 'video', 'img', 'link', 'source', 'script'],
onLoad: ['script', 'img', 'link'],
onError: ['audio', 'video', 'img', 'link', 'source', 'script', 'iframe'],
onLoad: ['script', 'img', 'link', 'iframe'],
onLoadedData: ['audio', 'video'],
onLoadedMetadata: ['audio', 'video'],
onLoadStart: ['audio', 'video'],
Expand Down

0 comments on commit 89da124

Please sign in to comment.