Class HTMLUtils
java.lang.Object
com.adobe.epubcheck.xml.HTMLUtils
Utilities for HTML-specific logic.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCaseInsensitiveAttribute(String namespace, String name) Returns whether an attribute is defined as having a case-insensitive value in HTML.static booleanisCustomElement(String namespace, String name) static booleanisCustomNamespace(String namespace) static booleanisDataAttribute(String namespace, String name) static booleanisValidDataAttribute(String name) Tells if a string is a valid custom data attribute, as defined in HTML.
-
Field Details
-
KNOWN_XHTML_NAMESPACES
-
CASE_INSENSITIVE_ATTRIBUTES
-
-
Constructor Details
-
HTMLUtils
private HTMLUtils()
-
-
Method Details
-
isCustomElement
-
isCustomNamespace
-
isCaseInsensitiveAttribute
Returns whether an attribute is defined as having a case-insensitive value in HTML. This is notably the case of boolean attributes and enumerated attributes.- Parameters:
name- the name of an attribute defined in the HTML specification- Returns:
trueiff the attribute value is case-insensitive
-
isDataAttribute
-
isValidDataAttribute
Tells if a string is a valid custom data attribute, as defined in HTML.- Parameters:
name- the data attribute to test- Returns:
- true if
nameis a valid custom data attribute
-