We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6a82a1 commit be2d655Copy full SHA for be2d655
1 file changed
README.md
@@ -34,7 +34,7 @@ Usage
34
import {createParser} from 'css-selector-parser';
35
36
const parse = createParser();
37
-const selector = parse('a[href^="/"], .container:has(nav) > a[href]:nth-child(2)');
+const selector = parse('a[href^="/"], .container:has(nav) > a[href]:nth-child(2)::before');
38
39
console.log(selector);
40
```
@@ -84,6 +84,10 @@ Produces:
84
type: 'PseudoClass',
85
name: 'nth-child',
86
argument: { type: 'Formula', a: 0, b: 2 }
87
+ },
88
+ {
89
+ type: 'PseudoElement',
90
+ name: 'before'
91
}
92
],
93
combinator: '>'
0 commit comments