Accessibility and Thymeleaf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessibility and Thymeleaf

Magda
Hi,
could somebody tell me how should I set aria-required attribute in fragment?

I have already tried those solutions:

th:attr="aria-required= ${required}"
th:aria-required="${required}"

But none of them worked :-(.

I would appreciate any help.
Reply | Threaded
Open this post in threaded view
|

Re: Accessibility and Thymeleaf

Metroids
Both examples work for me:

        <span th:attr="aria-required=${required}" />
        <span th:aria-required="${required}" />

Produces

        <span aria-required="true" />
        <span aria-required="true" />

(Running 3.0.11.RELEASE)