File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -325,21 +325,16 @@ module.exports = function (grunt) {
325
325
}
326
326
} ,
327
327
328
- validation : {
328
+ htmllint : {
329
329
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".'
338
335
]
339
336
} ,
340
- files : {
341
- src : '_gh_pages/**/*.html'
342
- }
337
+ src : '_gh_pages/**/*.html'
343
338
} ,
344
339
345
340
watch : {
@@ -414,7 +409,7 @@ module.exports = function (grunt) {
414
409
require ( 'time-grunt' ) ( grunt ) ;
415
410
416
411
// Docs HTML validation task
417
- grunt . registerTask ( 'validate-html' , [ 'jekyll:docs' , 'validation ' ] ) ;
412
+ grunt . registerTask ( 'validate-html' , [ 'jekyll:docs' , 'htmllint ' ] ) ;
418
413
419
414
var runSubset = function ( subset ) {
420
415
return ! process . env . TWBS_TEST || process . env . TWBS_TEST === subset ;
Original file line number Diff line number Diff line change 51
51
"grunt-contrib-watch" : " ~0.6.1" ,
52
52
"grunt-csscomb" : " ~3.0.0" ,
53
53
"grunt-exec" : " ~0.4.6" ,
54
- "grunt-html-validation " : " ~0.1.18 " ,
54
+ "grunt-html" : " ~2.0.0 " ,
55
55
"grunt-jekyll" : " ~0.4.2" ,
56
56
"grunt-jscs" : " ~1.2.0" ,
57
57
"grunt-saucelabs" : " ~8.5.0" ,
You can’t perform that action at this time.
0 commit comments