CC: | oliver.g.charles [...] googlemail.com |
Subject: | Unary > Incorrectly Converted |
Date: | Wed, 30 Sep 2009 10:22:57 -0700 |
To: | bug-html-selector-xpath [...] rt.cpan.org |
From: | "David E. Wheeler" <dwheeler [...] cpan.org> |
Tatsuhiko-San,
Using "> em" as an example:
perl -MHTML::Selector::XPath -le 'print
HTML::Selector::XPath::selector_to_xpath("> em")'
///em
I think that this is wrong. See:
http://css2xpath.appspot.com/?format=html&css=%3E+em
Where it says that it should be "descendant-or-self::*/em". I think
that "./em" would work, too.
I need this in order for recursive searches to work with CSS selectors
in Test::XPath.
Thanks,
David