NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
CSS3 support (Score:1)
Hmm, it seems entirely possible to express all of CSS 3 in terms XPath 1.0; no XPath 2.0 required.
I just haven’t gotten to it – honestly, because I was too lazy. CSS 3 has many more syntax elements than the CSS 2 and the new ones are much more complex, so it’s not quite the same kind of 5-minute job.
Reply to This
Re: (Score:1)
Re: (Score:1)
Seems to me that a
[not(subexpr)]predicate should work. The only trick is to get any references to the context node right insubexpr, I suppose by usingself::*or something.Actually, now that you have written the module I may get around to it sooner, since there are working unit tests in there…
Re: (Score:1)
Re: (Score:1)
Add a case for
*:not(p)and see if that works. The correct translation should be*[not(self::p)], I think.Re: (Score:1)
To support that I should rewrite the parser algorithm somehow, and it will be done when I decide to do a complete CSS 3 selectors support. For now it'll croak.