From 1d13218ecb9299b5dce4d18f437c89f1ae209c92 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 27 Jan 2018 00:13:17 -0800 Subject: [PATCH] Restore tests and crossorigin attribute map --- lib/rules/no-unknown-property.js | 3 ++- tests/lib/rules/no-unknown-property.js | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js index 8f982908be..f2ea0e1a5e 100644 --- a/lib/rules/no-unknown-property.js +++ b/lib/rules/no-unknown-property.js @@ -21,7 +21,8 @@ const DOM_ATTRIBUTE_NAMES = { 'accept-charset': 'acceptCharset', class: 'className', for: 'htmlFor', - 'http-equiv': 'httpEquiv' + 'http-equiv': 'httpEquiv', + crossorigin: 'crossOrigin' }; const ATTRIBUTE_TAGS_MAP = { diff --git a/tests/lib/rules/no-unknown-property.js b/tests/lib/rules/no-unknown-property.js index 36177aa2ad..8fdc4f7534 100644 --- a/tests/lib/rules/no-unknown-property.js +++ b/tests/lib/rules/no-unknown-property.js @@ -80,6 +80,12 @@ ruleTester.run('no-unknown-property', rule, { code: ';', output: ';', errors: [{message: 'Unknown property \'clip-path\' found, use \'clipPath\' instead'}] + }, { + code: '