CSS::SAC::Selector::Sibling - SAC SiblingSelector


CSS-SAC documentation  | view source Contained in the CSS-SAC distribution.

Index


NAME

Top

CSS::SAC::Selector::Sibling - SAC SiblingSelector

SYNOPSIS

Top

 see CSS::SAC::Selector

DESCRIPTION

Top

This is a subclass of CSS::SAC::Selector, look there for more documentation. This class adds the methods described below.

This subclass also defines the constants for the DOM nodes. It uses the same constants as the DOM, and adds the ANY_NODE constant which matches any node.

CONSTANTS

Top

* ELEMENT_NODE
* ATTRIBUTE_NODE
* TEXT_NODE
* CDATA_SECTION_NODE
* ENTITY_REFERENCE_NODE
* ENTITY_NODE
* PROCESSING_INSTRUCTION_NODE
* COMMENT_NODE
* DOCUMENT_NODE
* DOCUMENT_TYPE_NODE
* DOCUMENT_FRAGMENT_NODE
* NOTATION_NODE
* ANY_NODE

METHODS

Top

These also exist in spec style, simply prepend them with 'get'.

* CSS::SAC::Selector::Sibling->new($type,$node_type,$sel,$sibling_sel) =item * $ssel->new($type,$node_type,$sel,$sibling_sel)

Creates a new sibling selector.

* $ssel->NodeType([$node_type])

get/set the node type to which we apply

* $ssel->Selector([$sel])

get/set the selector's sub selector

* $ssel->SiblingSelector([$sib_sel])

get/set the selector's sibling selector

AUTHOR

Top

Robin Berjon <robin@knowscape.com>

This module is licensed under the same terms as Perl itself.


CSS-SAC documentation  | view source Contained in the CSS-SAC distribution.