java.lang.Object
com.aoapps.html.any.attributes.text.Data.data
Utility class for working with
Data
as data-* HTML attributes.
- Since:
- HTML 5
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The required prefix for data-* HTML attributes. -
Method Summary
-
Field Details
-
ATTRIBUTE_PREFIX
The required prefix for data-* HTML attributes.- See Also:
-
-
Method Details
-
validate
Validates a data-* HTML attribute name. -
toJsName
Converts a data-* HTML attribute name to a JavaScript dataset property name.This method is the simplest conversion implementation and does not perform full validation.
- See Also:
-