NAME

Whatpm::CSS::SelectorsParser - A Selectors Parser


SYNOPSIS

@@ TBD


DESCRIPTION

@@ TBD


CONSTANTS

Simple Selector Types

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);

Combinator Types

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);

Match Types

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);


METHODS

@@ TBD


SEE ALSO

@@ TBD


AUTHOR

Wakaba <w@suika.fam.cx>.


LICENSE

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.