Fix default block matching for pseudo-element, it was mentioning
pseudo-class.
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -308,8 +308,8 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => { | ... | @@ -308,8 +308,8 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => { |
| 308 | case 'content': | 308 | case 'content': |
| 309 | return (context, node, parent, i, debug, special) => special === PSEUDO_ELEMENTS.content | 309 | return (context, node, parent, i, debug, special) => special === PSEUDO_ELEMENTS.content |
| 310 | default: | 310 | default: |
| 311 | console.error('pseudo-class', nodeUtil.inspect({ selector, ast }, { depth: null, colors: true })) | 311 | console.error('pseudo-element', nodeUtil.inspect({ selector, ast }, { depth: null, colors: true })) |
| 312 | throw new Error(`Unknown pseudo-class: ${ast.name}`) | 312 | throw new Error(`Unknown pseudo-element: ${ast.name}`) |
| 313 | } | 313 | } |
| 314 | default: | 314 | default: |
| 315 | throw new Error(`Unhandled ast: ${ast.type}`) | 315 | throw new Error(`Unhandled ast: ${ast.type}`) | ... | ... |
-
Please register or sign in to post a comment