Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-09-19 10:41:16 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-10-08 20:12:34 +0300
commitbfc052ad5a6854363cb40c8b9bdd55c35b151321 (patch)
tree98a7cd55ede5a09b7904403829753bcf03bf5992
parent08529515e5031142b072289e118230e25628728b (diff)
Fix HTML validation errors and lint tests too.
-rw-r--r--Gruntfile.js4
-rw-r--r--docs/_includes/components/progress-bars.html2
-rw-r--r--js/tests/index.html2
-rw-r--r--js/tests/visual/affix-with-sticky-footer.html2
-rw-r--r--js/tests/visual/affix.html2
-rw-r--r--js/tests/visual/alert.html2
-rw-r--r--js/tests/visual/button.html2
-rw-r--r--js/tests/visual/carousel.html2
-rw-r--r--js/tests/visual/collapse.html6
-rw-r--r--js/tests/visual/dropdown.html4
-rw-r--r--js/tests/visual/modal.html4
-rw-r--r--js/tests/visual/popover.html2
-rw-r--r--js/tests/visual/scrollspy.html5
-rw-r--r--js/tests/visual/tab.html2
-rw-r--r--js/tests/visual/tooltip.html2
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 @@
<div class="progress">
<div class="progress-bar progress-bar-striped" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%"><span class="sr-only">45% Complete</span></div>
</div>
- <button type="button" class="btn btn-default bs-docs-activate-animated-progressbar" data-toggle="button" aria-pressed="false" autocomplete="off">Toggle animation</button>
+ <button type="button" class="btn btn-default bs-docs-activate-animated-progressbar" data-toggle="button" aria-pressed="false">Toggle animation</button>
</div>
{% highlight html %}
<div class="progress">
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap Plugin Test Suite</title>
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -70,9 +70,9 @@
Collapse with an XSS
</button>
- <button class="btn" data-toggle="collapse" data-parent="<img src=1 onerror=\'alert(0)\'>" href="#collapseThree">
+ <a role="button" class="btn btn-primary" data-toggle="collapse" data-parent="<img src=1 onerror=\'alert(0)\'>" href="#collapseThree">
Collapse with an XSS in data-parent
- </button>
+ </a>
</div>
<!-- JavaScript Includes -->
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 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -22,7 +22,7 @@
<h1>Dropdown <small>Bootstrap Visual Test</small></h1>
</div>
- <nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation">
+ <nav id="navbar-example" class="navbar navbar-default navbar-static">
<div class="container-fluid">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-collapse">
diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index ac2bdc448d..947d61c346 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -182,7 +182,7 @@ function reportFirefoxTestResult(result) {
if (!firefoxTestDone) {
$('#ff-bug-test-result')
.addClass(result ? 'text-success' : 'text-danger')
- .text(result ? 'PASS' : 'FAIL')
+ .text(result ? 'PASS' : 'FAIL')
}
firefoxTestDone = true
}
diff --git a/js/tests/visual/popover.html b/js/tests/visual/popover.html
index c2ad922552..1bca499664 100644
--- a/js/tests/visual/popover.html
+++ b/js/tests/visual/popover.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
diff --git a/js/tests/visual/scrollspy.html b/js/tests/visual/scrollspy.html
index bc801ba9cb..6dfa1e11c1 100644
--- a/js/tests/visual/scrollspy.html
+++ b/js/tests/visual/scrollspy.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -22,7 +22,7 @@
<div class="container">
- <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".js-navbar-scrollspy">
@@ -94,7 +94,6 @@
<p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
<p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
<p>Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.</p>
- </p>
</div>
diff --git a/js/tests/visual/tab.html b/js/tests/visual/tab.html
index 3b6b97f5eb..0476e28be3 100644
--- a/js/tests/visual/tab.html
+++ b/js/tests/visual/tab.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
diff --git a/js/tests/visual/tooltip.html b/js/tests/visual/tooltip.html
index e3d6ab8d23..38fe59b27f 100644
--- a/js/tests/visual/tooltip.html
+++ b/js/tests/visual/tooltip.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">