Package org.owasp.validator.html.model
Class Attribute
java.lang.Object
org.owasp.validator.html.model.Attribute
A model for HTML attributes and the "rules" they must follow (either literals or regular expressions) in
order to be considered valid.
- Author:
- Arshan Dabirsiaghi, Kristian Rosenvold
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsAllowedValue
(String valueInLowerCase) getName()
matcherRegEx
(boolean hasNext) boolean
matchesAllowedExpression
(String value)
-
Constructor Details
-
Attribute
-
-
Method Details
-
matchesAllowedExpression
-
containsAllowedValue
-
getName
-
getOnInvalid
- Returns:
- The
onInvalid
value a tag could have, from the list of "filterTag", "removeTag" and "removeAttribute"
-
mutate
-
matcherRegEx
-