Mojo::DOM parse presudo class #332

Closed
jiyouyou125 opened this Issue May 30, 2012 · 1 comment

Comments

Projects
None yet
2 participants

use Mojo::DOM;
my $dom = Mojo::DOM->new->parse(<<EOF);

    S
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H

EOF
$dom->find("ul li:not(:first-child)")->each(sub{ print $_->text,"\n"});

return:
A
B
C
D
E
F
G
H

I think it couldn't contain "A".

I'm not sure it's a bug.

Owner

kraih commented May 30, 2012

Doesn't look like a bug to me, "span" is the first child.

kraih closed this May 30, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment