diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-02-06 16:15:54 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-02-08 08:19:07 +0300 |
commit | 6d8e3a47bd672f8c6cef8e39935758de68ca6886 (patch) | |
tree | 0a4b283b2de9dd9dee6e4124cb3dccb0d4645e16 | |
parent | 2ccb8eef2f3ee6320f34eb4510b81d0e6e1c2718 (diff) |
Remove `role="main"` from `main`
This was needed for IE which isn't supported.
-rw-r--r-- | build/vnu-jar.js | 5 | ||||
-rw-r--r-- | docs/layouts/_default/404.html | 2 | ||||
-rw-r--r-- | docs/layouts/_default/home.html | 2 | ||||
-rw-r--r-- | docs/layouts/_default/list.html | 2 | ||||
-rw-r--r-- | docs/layouts/_default/single.html | 2 | ||||
-rw-r--r-- | docs/layouts/icons/single.html | 2 |
6 files changed, 6 insertions, 9 deletions
diff --git a/build/vnu-jar.js b/build/vnu-jar.js index a2ca6907b..c4d8604ca 100644 --- a/build/vnu-jar.js +++ b/build/vnu-jar.js @@ -21,11 +21,8 @@ childProcess.exec('java -version', (error, stdout, stderr) => { const is32bitJava = !/64-Bit/.test(stderr) // vnu-jar accepts multiple ignores joined with a `|`. - // Also note that the ignores are regular expressions. + // Also note that the ignores are string regular expressions. const ignores = [ - // IE11 doesn't recognize <main> / give the element an implicit "main" landmark. - // Explicit role="main" is redundant for other modern browsers, but still valid. - 'The “main” role is unnecessary for element “main”.' ].join('|') const args = [ diff --git a/docs/layouts/_default/404.html b/docs/layouts/_default/404.html index 7938ff296..7da3f1459 100644 --- a/docs/layouts/_default/404.html +++ b/docs/layouts/_default/404.html @@ -7,7 +7,7 @@ {{ partialCached "skippy" . }} {{ partialCached "navbar" . }} - <main class="my-auto p-5" id="content" role="main"> + <main class="my-auto p-5" id="content"> {{ .Content }} </main> diff --git a/docs/layouts/_default/home.html b/docs/layouts/_default/home.html index caf5f2ccd..0f8a4fdd0 100644 --- a/docs/layouts/_default/home.html +++ b/docs/layouts/_default/home.html @@ -8,7 +8,7 @@ {{ partialCached "navbar" . }} {{ partialCached "hero" . }} - <main class="container" id="content" role="main"> + <main class="container" id="content"> {{ partialCached "icons" . }} {{ .Content }} diff --git a/docs/layouts/_default/list.html b/docs/layouts/_default/list.html index bc469413c..4fcbc20bd 100644 --- a/docs/layouts/_default/list.html +++ b/docs/layouts/_default/list.html @@ -8,7 +8,7 @@ {{ partialCached "navbar" . }} {{ partialCached "hero" . }} - <main class="container" id="content" role="main"> + <main class="container" id="content"> <ul> {{ range .Pages }} <li> diff --git a/docs/layouts/_default/single.html b/docs/layouts/_default/single.html index cde80a12d..4852f6ca5 100644 --- a/docs/layouts/_default/single.html +++ b/docs/layouts/_default/single.html @@ -8,7 +8,7 @@ {{ partialCached "navbar" . }} {{ partialCached "hero" . }} - <main class="container" id="content" role="main"> + <main class="container" id="content"> {{ .Content }} </main> diff --git a/docs/layouts/icons/single.html b/docs/layouts/icons/single.html index 31cbac9b5..39c47e6c8 100644 --- a/docs/layouts/icons/single.html +++ b/docs/layouts/icons/single.html @@ -7,7 +7,7 @@ {{ partialCached "skippy" . }} {{ partial "navbar" . }} - <main class="container icon-examples" id="content" role="main"> + <main class="container icon-examples" id="content"> <nav aria-label="breadcrumb"> <ol class="breadcrumb my-4 p-0"> <li class="breadcrumb-item"><a href="/">Icons</a></li> |