You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1:03pm] Inviz: Do you guys think '^' and '!^' combinators in slick (first & last child) are inconsistent compared to other combinators?
[1:03pm] Inviz: Other combinators like ' ', '+', '~' can be inverted to match from child to parent
[1:05pm] Inviz: while inverting ^ and !^ does not reverse the matching logic, it reverses the first-last child semantic
[1:08pm] Inviz: Slick.find(ul, 'li') //li Slick.find(li, Slick.parse('li').reverse()) //ul
[1:08pm] Inviz: that works transitively for all combinators
[1:09pm] Inviz: ^ li reverses to li !^ *
[1:09pm] Inviz: and grabs last child of LI
[1:10pm] Inviz: the correct way here would be to make !^ return parent IF current node is first node
[1:10pm] Inviz: but then last-child combinator needs its own combinator
The text was updated successfully, but these errors were encountered:
Sorry for messy formatting.
[1:03pm] Inviz: Do you guys think '^' and '!^' combinators in slick (first & last child) are inconsistent compared to other combinators?
[1:03pm] Inviz: Other combinators like ' ', '+', '~' can be inverted to match from child to parent
[1:05pm] Inviz: while inverting ^ and !^ does not reverse the matching logic, it reverses the first-last child semantic
[1:08pm] Inviz: Slick.find(ul, 'li') //li Slick.find(li, Slick.parse('li').reverse()) //ul
[1:08pm] Inviz: that works transitively for all combinators
[1:09pm] Inviz: ^ li reverses to li !^ *
[1:09pm] Inviz: and grabs last child of LI
[1:10pm] Inviz: the correct way here would be to make !^ return parent IF current node is first node
[1:10pm] Inviz: but then last-child combinator needs its own combinator
The text was updated successfully, but these errors were encountered: