X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fselectors.t;fp=t%2Fselectors.t;h=13a8154d41f26cb3a6428f9bcfbbb135bdc71cb7;hb=5b63d2447b01acd333b2a0a9adb7aa793b72fcf6;hp=09875ad2d543e7aad232e7da24831abbf9535562;hpb=0e082da701c27cf5cce0f56c3f1a9692ffbb2580;p=catagits%2FHTML-Zoom.git diff --git a/t/selectors.t b/t/selectors.t index 09875ad..13a8154 100644 --- a/t/selectors.t +++ b/t/selectors.t @@ -89,6 +89,14 @@ is( HTML::Zoom->from_html('
'.$stub) '
grg
'.$stub, 'E[attr*="val"] works' ); +# el[attr~="foo"] +is( HTML::Zoom->from_html('
'.$stub) + ->select('div[frew~="bar"]') + ->replace_content('grg') + ->to_html, + '
grg
'.$stub, + 'E[attr~="val"] works' ); + # [attr=bar] ok( check_select( '[prop=moo]'), '[attr=bar]' );