226227228229230231232233234235236
sb.append(id); } else if (current == '[') { //attribute selectors sb.append(current); next(); AttributeSelector as = attribute(); simpleSelectorList.add(as); parserListener.attributeSelector(as); sb.append(as); sb.append(']'); } else if (current == ':') {
359360361362363364365366
throw new ParserException("Token ']' expected at position " + pos); } int endPos = pos; next(); return new AttributeSelector(name, operator, value, new Context(content, sb.toString(), initialPos, endPos)); }
493494495496497498499500501502503504505506
sb.append(id); } else if (current == '[') { //attribute selectors sb.append(current); next(); AttributeSelector as = attribute(); simpleSelector = as; parserListener.negationAttributeSelector(as); sb.append(as.getContext()); sb.append(']'); } else if (current == ':') { //pseudo-class only sb.append(current); next();