Skip to content

Commit

Permalink
Tighten htmlhint's rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 20, 2017
1 parent 9a1d81f commit f38c074
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 8 deletions.
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
27 changes: 23 additions & 4 deletions build/.htmllintrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@
{
"alt-require": true,
"attr-bans": ["align", "background", "bgcolor", "border", "frameborder", "longdesc", "marginwidth", "marginheight", "scrolling"],
"attr-lowercase": true,
"attr-name-style": false,
"attr-no-unsafe-char": false,
"attr-no-duplication": true,
"attr-unsafe-char": true,
"attr-value-double-quotes": true,
"attr-value-not-empty": true,
"class-style": "dash",
"doctype-first": true,
"doctype-html5": true,
"fig-req-figcaption": false,
"html-valid-content-model": false,
"head-script-disabled": true,
"href-abs-or-rel": false,
"html-valid-content-model": true,
"id-class-ad-disabled": true,
"id-class-ignore-regex": "(onclick|content|[a-z]+([A-Z][a-z])+)",
"id-class-style": "dash",
"img-req-src": false,
"id-class-value": "dash",
"id-unique": true,
"img-req-alt": false,
"img-req-src": false,
"indent-style": "spaces",
"indent-width": 2,
"inline-script-disabled": false,
"inline-style-disabled": true,
"space-tab-mixed-disabled": "space",
"spec-char-escape": false,
"src-not-empty": true,
"style-disabled": true,
"tag-bans": ["b", "i"],
"title-max-len": false
"tagname-lowercase": true,
"tag-pair": true,
"tag-self-close": false,
"title-max-len": 70,
"title-require": true
}
3 changes: 1 addition & 2 deletions js/tests/visual/popover.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ <h1>Popover <small>Bootstrap Visual Test</small></h1>
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>

Expand Down

0 comments on commit f38c074

Please sign in to comment.