String separator = parseSeparator(tokens);
return new HtmlPathElement(new HtmlTag(tagNames, attributes, !isFresh, separator));
}
private static List<String> parseTagNames(TokenIterator<TokenType> tokens) {
List<String> tagNames = new ArrayList<>();
<BUG>tagNames.add(tokens.nextValue(TokenType.IDENTIFIER));
while (tokens.peekTokenType() == TokenType.CHOICE) {
tokens.skip();</BUG>
tagNames.add(tokens.nextValue(TokenType.IDENTIFIER));
}

String separator = parseSeparator(tokens);
return new HtmlPathElement(new HtmlTag(tagNames, attributes, !isFresh, separator));
}
private static List<String> parseTagNames(TokenIterator<TokenType> tokens) {
List<String> tagNames = new ArrayList<>();
tagNames.add(tokens.nextValue(TokenType.IDENTIFIER));
while (tokens.trySkip(TokenType.SYMBOL, "|")) {
tagNames.add(tokens.nextValue(TokenType.IDENTIFIER));
}
