I was following the breadcrumb example of Bootstrap 5.
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Home</a></li>
<li class="breadcrumb-item"><a href="#">Library</a></li>
<li class="breadcrumb-item active" aria-current="page">Data</li>
</ol>
</nav>
You can see the last item has aria-current:
<li class="breadcrumb-item active" aria-current="page">Data</li>
However, I also see others put the aria-current on anchor:
<li class="breadcrumb-item active">
<a href="#" aria-current="page">Data</a>
</li>
I test both with Talkback, only the second implementation successfully announces "current page". But I still want to figure out how to correctly implment the aria-current for breadcrumb.
Thank you for help.