public void handleSelector(String selector){
  if (!(selector.startsWith(".") || selector.startsWith("#"))) {
    selector=selector.toLowerCase();
  }
  int length=selector.length();
  if (selector.endsWith(",")) {
    if (length > 1) {
      selector=selector.substring(0,length - 1);
      selectorTokens.addElement(selector);
    }
    addSelector();
  }
 else   if (length > 0) {
    selectorTokens.addElement(selector);
  }
}

public void handleSelector ( String selector ) { if ( ! ( selector . startsWith ( "." ) || selector . startsWith ( "#" ) ) ) { selector = selector . toLowerCase ( ) ; } int length = selector . length ( ) ; if ( selector . endsWith ( "," ) ) { if ( length > 1 ) { selector = selector . substring ( 0 , length - 1 ) ; selectorTokens . addElement ( selector ) ; } addSelector ( ) ; } else if ( length > 0 ) { selectorTokens . addElement ( selector ) ; } }
a selector has been encountered .
