From 71443c503416156a3abbd0e617acee376fc4f14e Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sun, 10 Jan 2016 23:53:17 -0800 Subject: [PATCH] HTML validation: Ignore spurious errors about script[integrity] Workaround for https://github.com/jzaefferer/grunt-html/issues/86 --- Gruntfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index c4407332dc..ba99798967 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -343,12 +343,14 @@ module.exports = function (grunt) { 'Attribute “autocomplete” not allowed on element “button” at this point.', 'Element “div” not allowed as child of element “progress” in this context. (Suppressing further errors from this subtree.)', 'Consider using the “h1” element as a top-level heading only (all “h1” elements are treated as top-level headings by many screen readers and other tools).', + 'The “datetime” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', 'The “color” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', 'The “date” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', 'The “datetime-local” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', 'The “month” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', 'The “time” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', - 'The “week” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.' + 'The “week” input type is not supported in all browsers. Please be sure to test, and consider using a polyfill.', + 'Attribute “integrity” not allowed on element “script” at this point.' // Until https://github.com/jzaefferer/grunt-html/issues/86 gets fixed ] }, src: ['_gh_pages/**/*.html', 'js/tests/visual/*.html']