Whatpm::CSS::SelectorsParser - A Selectors Parser
@@ TBD
@@ TBD
The constants below represent the types of simple selectors (or parts
of simple selectors).
- NAMESPACE_SELECTOR
-
Namespace specification. It represents the namespace part
of a universal or type selector.
- LOCAL_NAME_SELECTOR
-
Local name specification. It represents the local name part
of a type selector.
- ID_SELECTOR
-
An ID selector.
- CLASS_SELECTOR
-
A class selector.
- PSEUDO_CLASS_SELECTOR
-
A pseudo-class selector.
- PSEUDO_ELEMENT_SELECTOR
-
A pseudo-element specification.
- ATTRIBUTE_SELECTOR
-
An attribute selector.
The tag :selector
can be used to export all of these
constants as:
use Whatpm::CSS::SelectorsParser qw(:selector);
The constants below represent the types of combinators.
- DESCENDANT_COMBINATOR
-
A descendant combinator.
- CHILD_COMBINATOR
-
A child combinator.
- ADJACENT_SIBLING_COMBINATOR
-
An adjacent sibling combinator.
- GENERAL_SIBLING_COMBINATOR
-
A general sibling combinator.
The tag :combinator
can be used to export all of these
constants as:
use Whatpm::CSS::SelectorsParser qw(:combinator);
The constants below represent the types of matches used
in attribute selectors.
- EXISTS_MATCH
-
Match by the existence of an attribute.
- EQUALS_MATCH
-
Exact match.
- INCLUDES_MATCH
-
Includes match (typically used for class attributes).
- DASH_MATCH
-
Dash match (typically used for language tag attributes).
- PREFIX_MATCH
-
Prefix match.
- SUFFIX_MATCH
-
Suffix match.
- SUBSTRING_MATCH
-
Substring match.
The tag :match
can be used to export all of these
constants as:
use Whatpm::CSS::SelectorsParser qw(:match);
@@ TBD
@@ TBD
Wakaba <w@suika.fam.cx>.
Copyright 2007 Wakaba <w@suika.fam.cx>
This library is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.