Open dafi opened 8 years ago
Hi, thanks for reporting this issue. I guess many CSS3 selectors are still not supported in Fuzi at the moment, but I'm planning to add them soon. Currently I'm on a vacation without a Mac at hand, so maybe when I have some free time after I get back.
Hello, thanks for fast library, but I have same issue:
root.xpath("//*[@id = 'booklist']//*[starts-with(@id, 'div-userbook-')]") // work
root.css("#booklist > div[id^='div-userbook-']") // crashed on xpath conversion rules
// XPath error : Invalid expression
// .//*[@id = 'booklist']/div[@id^='div-userbook-']
I heavly use css selectors and when they are a bit more complex the XPathFromCSS routine fails
The css selector
.box-paging a:not(.active)
generates the errorYou can reproduce the error yourself using the following snippet
Obviously the selector works fine using firebug or
document.querySelectorAll()