@@ -342,8 +342,22 @@ module.exports = function(grunt) {
342342 dest : 'p5-reference/'
343343 }
344344 } ,
345- htmllint : {
346- all : {
345+
346+ htmlhint : {
347+ html1 : {
348+ options : {
349+ 'attr-value-double-quotes' : false ,
350+ 'alt-require' : true ,
351+ 'doctype-first' : true ,
352+ 'title-require' : true ,
353+ 'attr-no-duplication' : true ,
354+ 'input-requires-label' : true ,
355+ 'tags-check' : true ,
356+ 'tagname-lowercase' : true ,
357+ 'tagname-specialchars' : true ,
358+ 'empty-tag-not-self-closed' : true ,
359+ 'id-unique' : true
360+ } ,
347361 src : [
348362 '<%= config.dist %>/**/*.html' ,
349363 '!<%= config.dist %>/**/CHANGES.html' ,
@@ -352,17 +366,10 @@ module.exports = function(grunt) {
352366 '!<%= config.dist %>/**/learn/*.html' ,
353367 '!<%= config.dist %>/**/examples/*.html' ,
354368 '!<%= config.dist %>/**/reference/assets/index.html'
355- ] ,
356- options : {
357- ignore : [
358- / ^ T h i s d o c u m e n t a p p e a r s t o b e w r i t t e n i n E n g l i s h / ,
359- / ^ B a d v a l u e “ h t t p s : / ,
360- / ^ C o n s i d e r a d d i n g a “ l a n g ” a t t r i b u t e t o t h e “ h t m l ” / ,
361- / ^ A t t r i b u t e “ p a y p a l e x p r e s s ” n o t a l l o w e d o n e l e m e n t “ s c r i p t ” a t t h i s p o i n t ./
362- ]
363- }
369+ ]
364370 }
365371 } ,
372+
366373 shell : {
367374 generate_dataJSON : {
368375 command : `git checkout ${ grunt . option ( 'target' ) } && npm ci && npm run grunt yui build` ,
@@ -402,7 +409,7 @@ module.exports = function(grunt) {
402409 grunt . loadNpmTasks ( 'grunt-file-append' ) ;
403410 grunt . loadNpmTasks ( 'grunt-contrib-compress' ) ;
404411 grunt . loadNpmTasks ( 'grunt-contrib-requirejs' ) ;
405- grunt . loadNpmTasks ( 'grunt-html ' ) ;
412+ grunt . loadNpmTasks ( 'grunt-htmlhint ' ) ;
406413
407414 // i18n tracking task
408415 grunt . registerTask ( 'i18n' , function ( ) {
@@ -495,7 +502,7 @@ module.exports = function(grunt) {
495502 'file_append' ,
496503 'compress' ,
497504 'i18n' ,
498- 'htmllint '
505+ 'htmlhint '
499506 ] ) ;
500507
501508 // runs with just grunt command
0 commit comments