css-selector-parser / Exports / AstAttribute
Attribute selector. Generated by ast.attribute.
Example
"[role='button' i]"
• Optional
caseSensitivityModifier: string
Comparison case sensitivity modifier (i.e. "i"
in case if "[role='button' i]"
).
• name: string
Attribute name (i.e. "href"
in case if "[href]"
).
• Optional
namespace: AstNamespaceName
| AstWildcardNamespace
| AstNoNamespace
Namespace according to https://drafts.csswg.org/selectors/#attrnmsp.
• Optional
operator: string
Comparison operator (i.e. "|="
in case if "[role|=button]"
).
• type: "Attribute"
• Optional
value: AstSubstitution
| AstString
Comparison value (i.e. "button"
in case if "[role=button]"
).