java.lang.Object
com.aoapps.html.any.attributes.text.Data.dataset
Utility class for working with Data
as JavaScript dataset property.
- Since:
- HTML 5
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
toAttrName
(String jsName) Converts a JavaScript dataset property name to a data-* HTML attribute name.static ValidationResult
Validates a JavaScript dataset property name.
-
Method Details
-
validate
Validates a JavaScript dataset property name.
-
toAttrName
Converts a JavaScript dataset property name to a data-* HTML attribute name.
This method is the simplest conversion implementation and does not perform full validation.
- See Also:
-