Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
astro-wt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cbb7401a
authored
2025-01-15 16:23:06 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix default block matching for pseudo-element, it was mentioning
pseudo-class.
1 parent
b79bf0cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/html.ts
lib/html.ts
View file @
cbb7401
...
...
@@ -308,8 +308,8 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => {
case
'content'
:
return
(
context
,
node
,
parent
,
i
,
debug
,
special
)
=>
special
===
PSEUDO_ELEMENTS
.
content
default
:
console
.
error
(
'pseudo-
class
'
,
nodeUtil
.
inspect
({
selector
,
ast
},
{
depth
:
null
,
colors
:
true
}))
throw
new
Error
(
`Unknown pseudo-
class
:
${
ast
.
name
}
`
)
console
.
error
(
'pseudo-
element
'
,
nodeUtil
.
inspect
({
selector
,
ast
},
{
depth
:
null
,
colors
:
true
}))
throw
new
Error
(
`Unknown pseudo-
element
:
${
ast
.
name
}
`
)
}
default
:
throw
new
Error
(
`Unhandled ast:
${
ast
.
type
}
`
)
...
...
Please
register
or
sign in
to post a comment