From bfc052ad5a6854363cb40c8b9bdd55c35b151321 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 19 Sep 2018 10:41:16 +0300 Subject: [PATCH] Fix HTML validation errors and lint tests too. --- Gruntfile.js | 4 +--- docs/_includes/components/progress-bars.html | 2 +- js/tests/index.html | 2 +- js/tests/visual/affix-with-sticky-footer.html | 2 +- js/tests/visual/affix.html | 2 +- js/tests/visual/alert.html | 2 +- js/tests/visual/button.html | 2 +- js/tests/visual/carousel.html | 2 +- js/tests/visual/collapse.html | 6 +++--- js/tests/visual/dropdown.html | 4 ++-- js/tests/visual/modal.html | 4 ++-- js/tests/visual/popover.html | 2 +- js/tests/visual/scrollspy.html | 5 ++--- js/tests/visual/tab.html | 2 +- js/tests/visual/tooltip.html | 2 +- 15 files changed, 20 insertions(+), 23 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index f71d0aa194..4a69113eb0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -348,12 +348,10 @@ module.exports = function (grunt) { htmllint: { options: { ignore: [ - 'Attribute "autocomplete" not allowed on element "button" at this point.', - 'Attribute "autocomplete" is only allowed when the input type is "color", "date", "datetime", "datetime-local", "email", "hidden", "month", "number", "password", "range", "search", "tel", "text", "time", "url", or "week".', 'Element "img" is missing required attribute "src".' ] }, - src: '_gh_pages/**/*.html' + src: ['_gh_pages/**/*.html', 'js/tests/**/*.html'] }, watch: { diff --git a/docs/_includes/components/progress-bars.html b/docs/_includes/components/progress-bars.html index 13b76539ac..f349810a8d 100644 --- a/docs/_includes/components/progress-bars.html +++ b/docs/_includes/components/progress-bars.html @@ -173,7 +173,7 @@
45% Complete
- + {% highlight html %}
diff --git a/js/tests/index.html b/js/tests/index.html index 987f52ab6f..3234dc7a8a 100644 --- a/js/tests/index.html +++ b/js/tests/index.html @@ -1,5 +1,5 @@ - + Bootstrap Plugin Test Suite diff --git a/js/tests/visual/affix-with-sticky-footer.html b/js/tests/visual/affix-with-sticky-footer.html index da94d022db..693ff2bd10 100644 --- a/js/tests/visual/affix-with-sticky-footer.html +++ b/js/tests/visual/affix-with-sticky-footer.html @@ -1,5 +1,5 @@ - + diff --git a/js/tests/visual/affix.html b/js/tests/visual/affix.html index 630044fa46..c4de977f4c 100644 --- a/js/tests/visual/affix.html +++ b/js/tests/visual/affix.html @@ -1,5 +1,5 @@ - + diff --git a/js/tests/visual/alert.html b/js/tests/visual/alert.html index 525dc2ba43..01d899721f 100644 --- a/js/tests/visual/alert.html +++ b/js/tests/visual/alert.html @@ -1,5 +1,5 @@ - + diff --git a/js/tests/visual/button.html b/js/tests/visual/button.html index 51f853429f..7e5c377f37 100644 --- a/js/tests/visual/button.html +++ b/js/tests/visual/button.html @@ -1,5 +1,5 @@ - + diff --git a/js/tests/visual/carousel.html b/js/tests/visual/carousel.html index 93e1d9b6d9..59eec06cf5 100644 --- a/js/tests/visual/carousel.html +++ b/js/tests/visual/carousel.html @@ -1,5 +1,5 @@ - + diff --git a/js/tests/visual/collapse.html b/js/tests/visual/collapse.html index 748f54a7c7..951c9747d7 100644 --- a/js/tests/visual/collapse.html +++ b/js/tests/visual/collapse.html @@ -1,5 +1,5 @@ - + @@ -70,9 +70,9 @@ Collapse with an XSS - +
diff --git a/js/tests/visual/dropdown.html b/js/tests/visual/dropdown.html index 53c0ee3eac..7fce8375a7 100644 --- a/js/tests/visual/dropdown.html +++ b/js/tests/visual/dropdown.html @@ -1,5 +1,5 @@ - + @@ -22,7 +22,7 @@

Dropdown Bootstrap Visual Test

-