aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-01-19 15:08:34 -0800
committerChris Rebert <[email protected]>2015-02-04 14:10:35 -0800
commitea8b51920af8f769040ba558c2d9bb2de0da590e (patch)
treeb5c1a5834a722c8ce27bcf01d29679611df247aa
parentcff2e21d372cb9a768f567f0b72ca4d83a57498d (diff)
downloadbootstrap-ea8b51920af8f769040ba558c2d9bb2de0da590e.tar.xz
bootstrap-ea8b51920af8f769040ba558c2d9bb2de0da590e.zip
use grunt-html instead of grunt-html-validation because holy shit it's fast
-rw-r--r--Gruntfile.js26
-rw-r--r--package.json2
2 files changed, 11 insertions, 17 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 341c36ebd..ff878a6ea 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -272,24 +272,18 @@ module.exports = function (grunt) {
}
},
- validation: {
+ htmllint: {
options: {
- charset: 'utf-8',
- doctype: 'HTML5',
- failHard: true,
- reset: true,
- relaxerror: [
- 'Element img is missing required attribute src.',
- 'Attribute autocomplete not allowed on element input at this point.',
- 'Attribute autocomplete not allowed on element button at this point.',
- 'Element div not allowed as child of element progress in this context.',
- 'Element thead not allowed as child of element table in this context.',
- 'Bad value tablist for attribute role on element nav.'
+ ignore: [
+ 'Element “img” is missing required attribute “src”.',
+ 'Bad value “X-UA-Compatible” for attribute “http-equiv” on element “meta”.',
+ 'Attribute “autocomplete” not allowed on element “input” at this point.',
+ '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).'
]
},
- files: {
- src: '_gh_pages/**/*.html'
- }
+ src: '_gh_pages/**/*.html'
},
watch: {
@@ -358,7 +352,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt);
// Docs HTML validation task
- grunt.registerTask('validate-html', ['jekyll:docs', 'validation']);
+ grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
var runSubset = function (subset) {
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
diff --git a/package.json b/package.json
index 5cf0d04dd..b93e08f0a 100644
--- a/package.json
+++ b/package.json
@@ -51,7 +51,7 @@
"grunt-contrib-watch": "~0.6.1",
"grunt-csscomb": "~3.0.0",
"grunt-exec": "~0.4.6",
- "grunt-html-validation": "~0.1.18",
+ "grunt-html": "^2.0.0",
"grunt-jekyll": "~0.4.2",
"grunt-jscs": "~1.2.0",
"grunt-postcss": "^0.3.0",