Skip to content

Latest commit

 

History

History
69 lines (39 loc) · 1.36 KB

AstAttribute.md

File metadata and controls

69 lines (39 loc) · 1.36 KB

css-selector-parser / Exports / AstAttribute

Interface: AstAttribute

Attribute selector. Generated by ast.attribute.

Example

"[role='button' i]"

Table of contents

Properties

Properties

caseSensitivityModifier

Optional caseSensitivityModifier: string

Comparison case sensitivity modifier (i.e. "i" in case if "[role='button' i]").


name

name: string

Attribute name (i.e. "href" in case if "[href]").


namespace

Optional namespace: AstNamespaceName | AstWildcardNamespace | AstNoNamespace

Namespace according to https://drafts.csswg.org/selectors/#attrnmsp.


operator

Optional operator: string

Comparison operator (i.e. "|=" in case if "[role|=button]").


type

type: "Attribute"


value

Optional value: AstSubstitution | AstString

Comparison value (i.e. "button" in case if "[role=button]").