Remarks: Not all the following selectors are supported (or will be supported) by CSS.
All examples are CSS2 compliant. @version $Revision: 1.2 $ @author Philippe Le Hegaret
824825826827828829830831832833834
/** * Parses a selector. */ protected Selector parseSelector() { SimpleSelector ss = parseSimpleSelector(); Selector result = ss; pseudoElement = null; loop: for (;;) { switch (current) {
621622623624625626627628629630631
// We may have conditions too, so we call convertSelector(). simpleTypeSelector = convertSelector(simpleSelector, declaration); if (simpleTypeSelector != null) { Selector ancestorSelector = descendantSelector.getAncestorSelector(); simpleTypeSelector.setAncestor(convertSelector(ancestorSelector, declaration)); } } else {