@@ -30,12 +30,17 @@ name | attributes | example | output
30
30
` universal ` | - | ` * ` | ` { type: 'universal' } `
31
31
` pseudo ` | ` name ` , ` data ` |` :name(data) ` | ` { type: 'pseudo', name: 'name', data: 'data' } `
32
32
` pseudo ` | ` name ` , ` data ` |` :name ` | ` { type: 'pseudo', name: 'name', data: null } `
33
+ ` pseudo-element ` | ` name ` |` ::name ` | ` { type: 'pseudo-element', name: 'name' } `
33
34
` attribute ` |` name ` , ` action ` , ` value ` , ` ignoreCase ` |` [attr] ` |` { type: 'attribute', name: 'attr', action: 'exists', value: '', ignoreCase: false } `
34
35
` attribute ` |` name ` , ` action ` , ` value ` , ` ignoreCase ` |` [attr=val] ` |` { type: 'attribute', name: 'attr', action: 'equals', value: 'val', ignoreCase: false } `
35
36
` attribute ` |` name ` , ` action ` , ` value ` , ` ignoreCase ` |` [attr^=val] ` |` { type: 'attribute', name: 'attr', action: 'start', value: 'val', ignoreCase: false } `
36
37
` attribute ` |` name ` , ` action ` , ` value ` , ` ignoreCase ` |` [attr$=val] ` |` { type: 'attribute', name: 'attr', action: 'end', value: 'val', ignoreCase: false } `
38
+ ` child ` | - | ` > ` | ` { type: 'child' } `
39
+ ` parent ` | - | ` < ` | ` { type: 'parent' } `
40
+ ` sibling ` | - | ` ~ ` | ` { type: 'sibling' } `
41
+ ` adjacent ` | - | ` + ` | ` { type: 'adjacent' } `
42
+ ` descendant ` | - | | ` { type: 'descendant' } `
37
43
38
- //TODO complete list
39
44
40
45
__ Options:__
41
46
0 commit comments