Closed Tam closed 5 years ago
Sure, I'll add support in a couple of days.
Awesome, thanks!
Do you have any plans to add advanced CSS selector support (i.e. .my-list > li:nth-child(1n + 3)
) or is this something I'd have to handle manually?
It would be great to add such selectors, but I'm short on time the following weeks (I'll do selectors with spaces though). Are you interested in writing the code yourself? I will help with architecture and code optimization if needed.
I'm certainly up for it, but I'm also super busy over the next few weeks! I'll see if I can find some time to look into it.
@Tam You can solve it using the querySelector in this way:
$dom->querySelector('.parent')->querySelectorAll('.children')
Just released v1.1.0 with support for selectors with spaces... and some more :)
I'm trying to query for elements using selectors from a stylesheet. The majority of the have spaces in, but when I try to query by them I get this error:
Unsupported selector (div .my-thing)
.The docs don't mention anything about spaces, so I assume they're not supported? Is it possible to add support, or is there a workaround I could use?