Commit 73b50769 authored by Mark Otto's avatar Mark Otto Committed by XhmikosR
Browse files

Switch to grunt-html over grunt-html-validation.

parent 33d8fde6
5 merge requests!28721Hot test,!16605Test pull please ignore,!22103test,!25326Adjust examples,!15611Try different HTML validator
Showing with 9 additions and 14 deletions
+9 -14
...@@ -325,21 +325,16 @@ module.exports = function (grunt) { ...@@ -325,21 +325,16 @@ module.exports = function (grunt) {
} }
}, },
validation: { htmllint: {
options: { options: {
charset: 'utf-8', ignore: [
doctype: 'HTML5', 'Attribute "autocomplete" not allowed on element "button" at this point.',
failHard: true, 'Attribute "autocomplete" not allowed on element "input" at this point.',
reset: true, 'Bad value "X-UA-Compatible" for attribute "http-equiv" on element "meta".',
relaxerror: [ 'Element "img" is missing required attribute "src".'
'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.'
] ]
}, },
files: { src: '_gh_pages/**/*.html'
src: '_gh_pages/**/*.html'
}
}, },
watch: { watch: {
...@@ -414,7 +409,7 @@ module.exports = function (grunt) { ...@@ -414,7 +409,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt); require('time-grunt')(grunt);
// Docs HTML validation task // Docs HTML validation task
grunt.registerTask('validate-html', ['jekyll:docs', 'validation']); grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
var runSubset = function (subset) { var runSubset = function (subset) {
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset; return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment