DeadDomainsLinter icon indicating copy to clipboard operation
DeadDomainsLinter copied to clipboard

Broken Extended CSS rule with `:upward()`

Open Alex-302 opened this issue 1 year ago • 3 comments

spac1.ru,spcs.social#?#a[title="Реклама"]:upward(1) :upward(1) => :upward()

image

Alex-302 avatar Jan 30 '24 14:01 Alex-302

Looks like a bug in AGTree btw

CC @scripthunter7

ameshkov avatar Jan 30 '24 14:01 ameshkov

@ameshkov Yes, this is an AGTree bug. We have a custom generate function for CSS Tree nodes in AGTree v1.x.x (because by default CSS Tree omit all spaces, but we want generate some formatted CSS), and Number node is missed in that function In AGTree v2, we don't use CSS Tree directly. So parsing happens correctly, but custom generator has a bug. Should I fix v1.x.x for now, until we release v2?

scripthunter7 avatar Jan 30 '24 15:01 scripthunter7

No need, one day we'll upgrade to AGTree v2 :)

ameshkov avatar Jan 30 '24 15:01 ameshkov