Skip to content

Commit 73b5076

Browse files
mdoXhmikosR
authored andcommitted
Switch to grunt-html over grunt-html-validation.
1 parent 33d8fde commit 73b5076

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

Gruntfile.js

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -325,21 +325,16 @@ module.exports = function (grunt) {
325325
}
326326
},
327327

328-
validation: {
328+
htmllint: {
329329
options: {
330-
charset: 'utf-8',
331-
doctype: 'HTML5',
332-
failHard: true,
333-
reset: true,
334-
relaxerror: [
335-
'Element img is missing required attribute src.',
336-
'Attribute autocomplete not allowed on element input at this point.',
337-
'Attribute autocomplete not allowed on element button at this point.'
330+
ignore: [
331+
'Attribute "autocomplete" not allowed on element "button" at this point.',
332+
'Attribute "autocomplete" not allowed on element "input" at this point.',
333+
'Bad value "X-UA-Compatible" for attribute "http-equiv" on element "meta".',
334+
'Element "img" is missing required attribute "src".'
338335
]
339336
},
340-
files: {
341-
src: '_gh_pages/**/*.html'
342-
}
337+
src: '_gh_pages/**/*.html'
343338
},
344339

345340
watch: {
@@ -414,7 +409,7 @@ module.exports = function (grunt) {
414409
require('time-grunt')(grunt);
415410

416411
// Docs HTML validation task
417-
grunt.registerTask('validate-html', ['jekyll:docs', 'validation']);
412+
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
418413

419414
var runSubset = function (subset) {
420415
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"grunt-contrib-watch": "~0.6.1",
5252
"grunt-csscomb": "~3.0.0",
5353
"grunt-exec": "~0.4.6",
54-
"grunt-html-validation": "~0.1.18",
54+
"grunt-html": "~2.0.0",
5555
"grunt-jekyll": "~0.4.2",
5656
"grunt-jscs": "~1.2.0",
5757
"grunt-saucelabs": "~8.5.0",

0 commit comments

Comments
 (0)