From 6f65df26c58b6a58e2287a7ba62f8f7b99f36ff9 Mon Sep 17 00:00:00 2001 From: Joey Parrish Date: Wed, 18 Jan 2017 13:57:04 -0800 Subject: [PATCH] Whitelist svg camelcase attributes in htmlhint This is better than ignoring all camelcase. Introduced by yaniswang/HTMLHint#121 and released in 0.9.13. However, 0.9.13 is incompatible with node v0.10. This was fixed in yaniswang/HTMLHint#132, but there has not been a release since (in 8 months). Therefore we are pinning to today's git version instead of a release. This gets us the camelcase whitelisting feature and doesn't break with node v0.10. Change-Id: I1e3b6c0c96ef24662b46497b1a601bde0dae5704 --- .htmlhintrc | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.htmlhintrc b/.htmlhintrc index c7e87a78b4..87801cf801 100644 --- a/.htmlhintrc +++ b/.htmlhintrc @@ -1,6 +1,6 @@ { "alt-require": true, - "attr-lowercase": false, + "attr-lowercase": ["viewBox"], "attr-no-duplication": true, "attr-unsafe-chars": true, "attr-value-double-quotes": true, diff --git a/package.json b/package.json index 7bbbf99a18..653a4ca42d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ } ], "devDependencies": { - "htmlhint": "0.9.12", + "htmlhint": "yaniswang/HTMLHint#152a114f", "in-publish": "2.x", "jasmine-ajax": "3.3.x", "jasmine-core": "2.4.x",