X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fselectors.t;fp=t%2Fselectors.t;h=8a800b1c6ecc0497d179ad0c3658b973c7fadfb1;hb=6d80bb9ab1285f5a97311117d29e5a5e1431988a;hp=41699bf23ca3f4d2cf1e8e0e910284b57428c60c;hpb=52878e73ac8e6d929eb2591354d48ed4aadf442f;p=catagits%2FHTML-Zoom.git diff --git a/t/selectors.t b/t/selectors.t index 41699bf..8a800b1 100644 --- a/t/selectors.t +++ b/t/selectors.t @@ -40,6 +40,14 @@ is( HTML::Zoom->from_html('
'.$stub) '
grg
'.$stub, 'E[attr] works' ); +# *[attr] +is( HTML::Zoom->from_html('
'.$stub) + ->select('*[frew]') + ->replace_content('grg') + ->to_html, + '
grg
grg'.$stub, + '*[attr] works' ); + # el[attr="foo"] is( HTML::Zoom->from_html('
'.$stub) ->select('div[frew="yo"]')