- Issue created by @pdureau
- Status changed to Fixed
over 1 year ago 9:32am 25 July 2023 Automatically closed - issue fixed for 2 weeks with no activity.
There is a weird ternary condition in breadcrumb which can set an HTML attribute value as "null":
<a{{ item_attributes.addClass('fr-breadcrumb__link').setAttribute('href', url).setAttribute('aria-current', loop.last ? 'page' : null) }}
Once casted as string, this value will not be valid : https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attribut...
Replace by another condition:
{% set item_attributes = loop.last ? item_attributes.setAttribute('aria-current', 'page') : item_attributes %}
<a{{ item_attributes.addClass('fr-breadcrumb__link').setAttribute('href', url) }}>
Fixed
1.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.