Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: How to obtain text in Mojo::DOM ?by haukex (Archbishop) |
on May 22, 2016 at 09:41 UTC ( [id://1163787]=note: print w/replies, xml ) | Need Help?? |
Hi Perl_Love, There are two separate things going on here: First, class="a b" specifies that the anchor has two separate classes, named "a" and "b". Second, the selector 'a.a b' means to select an element b (bold) that is a descendant of an a element (anchor) of class "a". So to make your second example work, you could specify the selector to match an anchor that has both classes by chaining them, giving "a.a.b":
Hope this helps,
In Section
Seekers of Perl Wisdom
|
|