chrsan/css-selectors — Issue #5: Bad results from Scanner.scan() for expressions like div, div div
Author: lukaseder
Created: 2012-01-24 22:14:19+00:00
State: open

When I run this code:

```java
Scanner scanner = new Scanner("div, div div");
List> selectors = scanner.scan();
```

I get a list with 3 elements:

```java
System.out.println(selectors.size());
System.out.println(selectors.get(0).size());
System.out.println(selectors.get(1).size());
System.out.println(selectors.get(2).size());
```

prints:

```
3
1
2
2
```

It looks like the last "div div" is duplicated. This may lead to inefficient matching, when executing the selection.