From 1093a964199a1df5b6be9679493fc21dad3726ed Mon Sep 17 00:00:00 2001 From: Almeida Date: Mon, 10 Oct 2022 12:16:14 +0000 Subject: [PATCH] `no-unknown-property`: allow `allowFullScreen` on `iframe` --- lib/rules/no-unknown-property.js | 6 +++--- tests/lib/rules/no-unknown-property.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js index 7c8b66ac24..83fa695bec 100644 --- a/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js @@ -104,9 +104,9 @@ const ATTRIBUTE_TAGS_MAP = { loop: ['audio', 'video'], muted: ['audio', 'video'], playsInline: ['video'], - allowFullScreen: ['video'], - webkitAllowFullScreen: ['video'], - mozAllowFullScreen: ['video'], + allowFullScreen: ['iframe', 'video'], + webkitAllowFullScreen: ['iframe', 'video'], + mozAllowFullScreen: ['iframe', 'video'], poster: ['video'], preload: ['audio', 'video'], scrolling: ['iframe'], diff --git a/tests/lib/rules/no-unknown-property.js b/tests/lib/rules/no-unknown-property.js index 2fbc264185..86caae5437 100644 --- a/tests/lib/rules/no-unknown-property.js +++ b/tests/lib/rules/no-unknown-property.js @@ -70,6 +70,7 @@ ruleTester.run('no-unknown-property', rule, { { code: '' }, { code: '' }, { code: '