]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix HTML validation errors and lint tests too.
authorXhmikosR <xhmikosr@gmail.com>
Wed, 19 Sep 2018 07:41:16 +0000 (10:41 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 8 Oct 2018 17:12:34 +0000 (20:12 +0300)
15 files changed:
Gruntfile.js
docs/_includes/components/progress-bars.html
js/tests/index.html
js/tests/visual/affix-with-sticky-footer.html
js/tests/visual/affix.html
js/tests/visual/alert.html
js/tests/visual/button.html
js/tests/visual/carousel.html
js/tests/visual/collapse.html
js/tests/visual/dropdown.html
js/tests/visual/modal.html
js/tests/visual/popover.html
js/tests/visual/scrollspy.html
js/tests/visual/tab.html
js/tests/visual/tooltip.html

index f71d0aa1940cbca1a1d797734c5cbdebf527e166..4a69113eb0aae64b80e529eef50ffab3aa9316ed 100644 (file)
@@ -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: {
index 13b76539ac3179feccec802aa3a4091f1313f587..f349810a8d91eaef213a01cd0c765dcf7d5051cc 100644 (file)
     <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">
index 987f52ab6fe14f820ceeceeeca35b71020530a55..3234dc7a8add5888713c55805081305ffacf1231 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <title>Bootstrap Plugin Test Suite</title>
index da94d022db4153210fd70fc6bedb7aa02658c468..693ff2bd10516e1650ca6fcb3f5e1f49c349d992 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
index 630044fa4686eee22a21738056d9a243d116b9ba..c4de977f4c6cce35d841538ed100a04c0ec26ba6 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
index 525dc2ba4332c01f9010a09411f9823a4e90be97..01d899721f27d2b69d8979aabed2624db9222741 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
index 51f853429f99e2a966bb3efc50f5cdca4f33469a..7e5c377f37208f6451fcc78e4fe4b23ab9ad3d55 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
index 93e1d9b6d9095f86f47077644d653c228c6f3e03..59eec06cf540fe652f3326782380f84bb8aa8fa8 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
index 748f54a7c79cb67181de90bfd145bed75aabdcae..951c9747d70cfd99184d69e445e18c164d58487b 100644 (file)
@@ -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 -->
index 53c0ee3eac3c392e4d6c0d1fa24345037149e7dd..7fce8375a7c522469a957b829f9fbdf54752564d 100644 (file)
@@ -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">
index ac2bdc448dd5cb503615638c8674912f7fc3ef3f..947d61c346481b74507335f035db72a2ec086f7d 100644 (file)
@@ -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
 }
index c2ad922552d6dfc234ae72fea0b3ad6eb14233bd..1bca4996643092704cc39bc4de5a93664655572e 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
index bc801ba9cb42cc870e7ae99883b5ef1937c59750..6dfa1e11c1e37b2108544e5f44173ce2d72bb7aa 100644 (file)
@@ -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>
 
index 3b6b97f5ebde1711d2c035aabaf225c601ab2353..0476e28be3e3616803f3fe4d29c6276d43874488 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
index e3d6ab8d23e77a268c48e91af07f3c971f6ddeb4..38fe59b27f6e8bc59844391a2b6034450580298a 100644 (file)
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html>
+<html lang="en">
 <head>
   <meta charset="utf-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">