You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The filter function emits error if there is a text node, this code not working:
use v5.12;
use Web::Query;
use Data::Dumper;
my$wq = wq('<div class="foo"><p class="foo">bar</p></div>Standalone Text'); # needed because we don't have a global document like jQuery doesprint$wq->filter('.foo')->add($wq->find('.foo'))->as_html; # <div class="foo"><p class="foo">bar</p></div><p class="foo">bar</p>
The error is:
Can't locate object method "matches" via package "HTML::TreeBuilder::XPath::TextNode" at /site/lib/Web/Query.pm line 340.
Thanks for the new version also.
The text was updated successfully, but these errors were encountered:
The filter function emits error if there is a text node, this code not working:
The error is:
Thanks for the new version also.
The text was updated successfully, but these errors were encountered: