Bootstrap ~ "aria-extended" is not accepted by element

I am missing an idea why the copy of the sample from is Bootstrap

incapable of training and keeps throwing the error below:

The "aria-expand" attribute is not allowed on the "a" element at this point.

<ul class="nav navbar-nav">
                        <li><a href="#">Home </a></li>
                        <li><a href="#">Log-In</a></li>
                        <li class="dropdown">
                            <a href="#" aria-expanded="false" class="dropdown-toggle" data-toggle="dropdown" role="button" >
                                Management <span class="caret"></span>
                            </a>
                            <ul class="dropdown-menu" role="presentation">
                                <li><a href="#">Action</a></li>
                                <li><a href="#">Another action</a></li>
                                <li><a href="#">Something else here</a></li> 
                                <li class="divider"></li>
                                <li><a href="#">Separated link</a></li>
                                <li class="divider"></li>
                                <li><a href="#">One more separated link</a></li>
                            </ul>
                        </li>
</ul>

      

Does anyone have the same problem? Please help !!!

+3


source to share


1 answer


Use below

<li class="dropdown active">

      

or

<li class="dropdown active open">

      

instead of direct installation



aria-expanded="false"

      

and

aria-expanded="true"

      

respectively

+6


source







All Articles