]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add explicit role="main" to <main> elements (#22574)
authorPatrick H. Lauke <redux@splintered.co.uk>
Fri, 5 May 2017 09:22:09 +0000 (10:22 +0100)
committerGitHub <noreply@github.com>
Fri, 5 May 2017 09:22:09 +0000 (10:22 +0100)
For compatibility in IE10/IE11 which don't otherwise "know" this element's role/don't expose it to AT

docs/examples/dashboard/index.html
docs/index.html

index 5270f170521c157b8313d674b9cd53b16b0dac91..923c5a59478cfbacb077d6fa34dbdc939c5b8e55 100644 (file)
@@ -91,7 +91,7 @@
           </ul>
         </nav>
 
-        <main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3">
+        <main class="col-sm-9 offset-sm-3 col-md-10 offset-md-2 pt-3" role="main">
           <h1>Dashboard</h1>
 
           <section class="row text-center placeholders">
index 3b6c9206efcf3f0246cd2dda29f7bc5d4e229a11..ff037113a78f44820122b698b65b223e79a38182 100644 (file)
@@ -2,7 +2,7 @@
 layout: home
 ---
 
-<main class="bd-masthead" id="content">
+<main class="bd-masthead" id="content" role="main">
   <div class="container">
     <span class="bd-booticon outline">B</span>
     <p class="lead">Bootstrap is the most popular HTML, CSS, and JS framework in the world for building responsive, mobile-first projects on the web.</p>