0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

consistently use <nav> instead of <div> for .navbar in docs

This commit is contained in:
Chris Rebert 2014-08-15 18:09:05 -07:00
parent 31f7cb152e
commit 6b7142212f
12 changed files with 28 additions and 28 deletions

View File

@ -32,7 +32,7 @@
<div class="navbar-wrapper">
<div class="container">
<div class="navbar navbar-inverse navbar-static-top" role="navigation">
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -63,7 +63,7 @@
</ul>
</div>
</div>
</div>
</nav>
</div>
</div>

View File

@ -29,7 +29,7 @@
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -52,7 +52,7 @@
</form>
</div>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">

View File

@ -29,7 +29,7 @@
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -52,7 +52,7 @@
</form>
</div><!--/.navbar-collapse -->
</div>
</div>
</nav>
<!-- Main jumbotron for a primary marketing message or call to action -->
<div class="jumbotron">

View File

@ -30,7 +30,7 @@
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -66,7 +66,7 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
<div class="container">

View File

@ -30,7 +30,7 @@
<body>
<!-- Static navbar -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
<nav class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -66,7 +66,7 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
<div class="container">

View File

@ -32,7 +32,7 @@
<div class="container">
<!-- Static navbar -->
<div class="navbar navbar-default" role="navigation">
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -68,7 +68,7 @@
</ul>
</div><!--/.nav-collapse -->
</div><!--/.container-fluid -->
</div>
</nav>
<!-- Main component for a primary marketing message or call to action -->
<div class="jumbotron">

View File

@ -32,7 +32,7 @@
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -68,7 +68,7 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
<div class="container">

View File

@ -28,7 +28,7 @@
</head>
<body>
<div class="navbar navbar-fixed-top navbar-inverse" role="navigation">
<nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -47,7 +47,7 @@
</ul>
</div><!-- /.nav-collapse -->
</div><!-- /.container -->
</div><!-- /.navbar -->
</nav><!-- /.navbar -->
<div class="container">

View File

@ -29,7 +29,7 @@
<body>
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -48,7 +48,7 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
<div class="container">

View File

@ -30,7 +30,7 @@
<body>
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -61,7 +61,7 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
<!-- Begin page content -->
<div class="container">

View File

@ -32,7 +32,7 @@
<body role="document">
<!-- Fixed navbar -->
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -63,7 +63,7 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
<div class="container theme-showcase" role="main">
@ -378,7 +378,7 @@
<h1>Navbars</h1>
</div>
<div class="navbar navbar-default">
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -409,9 +409,9 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>
<div class="navbar navbar-inverse">
<nav class="navbar navbar-inverse">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
@ -442,7 +442,7 @@
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</nav>

View File

@ -124,12 +124,12 @@ $(function () {
test('should add the active class to the correct element', function () {
var navbarHtml =
'<div class="navbar">'
'<nav class="navbar">'
+ '<ul class="nav">'
+ '<li id="li-1"><a href="#div-1">div 1</a></li>'
+ '<li id="li-2"><a href="#div-2">div 2</a></li>'
+ '</ul>'
+ '</div>'
+ '</nav>'
var contentHtml =
'<div class="content" style="overflow: auto; height: 50px">'
+ '<div id="div-1" style="height: 100px; padding: 0; margin: 0">div 1</div>'