th:data

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

th:data

ballmw
I can't find any info for the th:data attribute.  What is that for?

I want to add attributes to my span that are data-value="xyz" type things.

I'm using th:attr

Is that right?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: th:data

Zemi
Administrator
There is an attribute processor for almost any HTML attribute
     http://www.w3.org/TR/html4/index/attributes.html

In this case, data is an attribute for the object element
   < object data="movie.swf"  />

I think that th:attr is the right choice for HTML5 data-* attributes.