]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Tighten htmllint's rules. (#24471)
authorXhmikosR <xhmikosr@gmail.com>
Sun, 22 Oct 2017 12:02:24 +0000 (15:02 +0300)
committerGitHub <noreply@github.com>
Sun, 22 Oct 2017 12:02:24 +0000 (15:02 +0300)
13 files changed:
_includes/header.html
build/.htmllintrc
js/tests/index.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 7c7a3a643737f846dd1dea064dd93601335925c9..ee077bdbd60b0f9f8bb669d430783213fd66019f 100644 (file)
@@ -4,9 +4,9 @@
 
 <title>
   {%- if page.title -%}
-    {{ page.title }} &middot; {{ site.title }}
+    {{ page.title }} · {{ site.title }}
   {%- else -%}
-    {{ site.title }} &middot; {{ site.description }}
+    {{ site.title }} · {{ site.description }}
   {%- endif -%}
 </title>
 
index c04658fb9e14c34cb16d1909a7524dbf95dc4668..ba2c6b3a392719b3b0ecfc279a7e30d2e1b7749b 100644 (file)
@@ -1,19 +1,43 @@
 {
   "attr-bans": ["align", "background", "bgcolor", "border", "frameborder", "longdesc", "marginwidth", "marginheight", "scrolling"],
   "attr-name-style": false,
-  "attr-no-unsafe-char": false,
+  "attr-no-dup": true,
+  "attr-no-unsafe-char": true,
+  "attr-quote-style": "double",
+  "attr-req-value": true,
+  "attr-validate": true,
+  "class-no-dup": true,
   "class-style": "dash",
   "doctype-first": true,
   "doctype-html5": true,
   "fig-req-figcaption": false,
+  "focusable-tabindex-style": true,
+  "head-req-title": true,
+  "head-valid-content-model": false,
+  "href-style": false,
+  "html-req-lang": true,
   "html-valid-content-model": false,
   "id-class-ignore-regex": "(onclick|content|[a-z]+([A-Z][a-z])+)",
+  "id-class-no-ad": true,
   "id-class-style": "dash",
+  "id-no-dup": true,
+  "img-req-alt": "allownull",
   "img-req-src": false,
-  "img-req-alt": false,
   "indent-style": "spaces",
   "indent-width": 2,
+  "input-radio-req-name": false,
+  "input-req-label": false,
+  "label-req-for": true,
+  "lang-style": "case",
+  "line-end-style": "lf",
   "spec-char-escape": false,
+  "table-req-header": false,
   "tag-bans": ["b", "i"],
-  "title-max-len": false
+  "tag-close": true,
+  "tagname-lowercase": true,
+  "tag-name-match": true,
+  "tag-self-close": false,
+  "text-ignore-regex": false,
+  "title-max-len": 70,
+  "title-no-dup": true
 }
index ad5b6437ab2ea6de01a83d55f5b22108ed03493b..2383fce6e6d7088878b09354384ba04154c31e32 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index bb2d9cb48d97bc2a2b4d7a0c32e61af7167a4a6e..9baee6f5067e8a088e7a61566bee725903632ea7 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index 33de14d8bdd2d2d04a525f268243a003f7489540..3de316ac8ee6a760919db9001d7bbbad39e38ca8 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index 5bdd6160b584c954042e1b81dac65cc0aa574884..f81dc951e72754d0920d7babe4165d4247243a9b 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index 0c19def73ffdab33af6461f613a5a4402e72d9e2..3005920957de504f4706b57319ea20f7b664db9b 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index bb0fc6e41c0d797fac670d2e5cf17eb1d3e93205..11b89b0f26d7dd17f2fb0c6aa587052ab24bad8b 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index fcc96035bd99e8165528dfbdd0f5d5da6e39ed60..3b4cd4d3e13b83c6e4e6b130edd9bb2b32c93682 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index d979d967a4ad4921acbf85d98e139930cebb1167..ec2fb493450a00b13239b4e9816853f2446206de 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@@ -22,8 +22,7 @@
         Popover on right
       </button>
 
-      <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus
-      sagittis lacus vel augue laoreet rutrum faucibus.">
+      <button type="button" class="btn btn-secondary" data-container="body" data-toggle="popover" data-placement="bottom" data-content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus.">
         Popover on bottom
       </button>
 
index cfa31ceeac3c9e483d7bf8b3e87a59497135b868..b57185187aa7986336266a225e5efe30e94574f0 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index defb577cfb1d297a6a4eece242a753df46080cfb..a6034722e75f60d7d0ca11ab1425efa9a5bbe1ba 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
index 2d3767830e368aa58cf11bec4cca8fa73b5720b2..cd57ef4ffc7e14de5f44ddbe158702b8186222c0 100644 (file)
@@ -1,5 +1,5 @@
 <!doctype html>
-<html>
+<html lang="en">
   <head>
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">