org.w3c.css.sac
public interface Selector
Remarks: Not all the following selectors are supported (or will be supported) by CSS.
All examples are CSS2 compliant.
Version: $Revision: 477010 $
Field Summary | |
---|---|
static short | SAC_ANY_NODE_SELECTOR
This selector matches any node. |
static short | SAC_CDATA_SECTION_NODE_SELECTOR
This selector matches only cdata node. |
static short | SAC_CHILD_SELECTOR
This selector matches a childhood relationship between two elements.
example:
E > F |
static short | SAC_COMMENT_NODE_SELECTOR
This selector matches only comment node. |
static short | SAC_CONDITIONAL_SELECTOR
This is a conditional selector.
example:
simple[role="private"] .part1 H1#myId P:lang(fr).p1 |
static short | SAC_DESCENDANT_SELECTOR
This selector matches an arbitrary descendant of some ancestor element.
example:
E F |
static short | SAC_DIRECT_ADJACENT_SELECTOR
This selector matches two selectors who shared the same parent in the
document tree and the element represented by the first sequence
immediately precedes the element represented by the second one.
example:
E + F |
static short | SAC_ELEMENT_NODE_SELECTOR
This selector matches only element node.
example:
H1 animate |
static short | SAC_NEGATIVE_SELECTOR
This selector matches only node that are different from a specified one. |
static short | SAC_PROCESSING_INSTRUCTION_NODE_SELECTOR
This selector matches only processing instruction node. |
static short | SAC_PSEUDO_ELEMENT_SELECTOR
This selector matches the 'first line' pseudo element.
example:
:first-line |
static short | SAC_ROOT_NODE_SELECTOR
This selector matches the root node. |
static short | SAC_TEXT_NODE_SELECTOR
This selector matches only text node. |
Method Summary | |
---|---|
short | getSelectorType()
An integer indicating the type of Selector |
See Also: SimpleSelector
See Also: CharacterDataSelector
E > F
See Also: DescendantSelector
See Also: CharacterDataSelector
simple[role="private"] .part1 H1#myId P:lang(fr).p1
See Also: ConditionalSelector
E F
See Also: DescendantSelector
E + F
See Also: SiblingSelector
H1 animate
See Also: ElementSelector
See Also: NegativeSelector
See Also: ProcessingInstructionSelector
:first-line
See Also: ElementSelector
See Also: SimpleSelector
See Also: CharacterDataSelector
Selector