From: Simon Elliott Date: Fri, 20 May 2011 19:57:32 +0000 (+0100) Subject: update docs. X-Git-Tag: 0.009009~1^2~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=commitdiff_plain;h=b51cc14d849ee166d7807bbbb98f715ca4c11184 update docs. --- diff --git a/lib/HTML/Zoom/FilterBuilder.pm b/lib/HTML/Zoom/FilterBuilder.pm index 6040288..bbe7545 100644 --- a/lib/HTML/Zoom/FilterBuilder.pm +++ b/lib/HTML/Zoom/FilterBuilder.pm @@ -465,7 +465,6 @@ Sets an attribute of a given name to a given value for all matching selections. ->select('div') ->set_attribute({name=>'class', value=>'divider'}); - Overrides existing values, if such exist. When multiple L calls are made against the same or overlapping selection sets, the final call wins. @@ -475,19 +474,9 @@ call wins. Adds a value to an existing attribute, or creates one if the attribute does not yet exist. You may call this method with either an Array or HashRef of Args. -Here's the 'long form' HashRef: - $html_zoom ->select('p') - ->set_attribute(class=>'paragraph') - ->then - ->add_to_attribute({name=>'class', value=>'divider'}); - -And the exact same effect using the 'short form' Array: - - $html_zoom - ->select('p') - ->set_attribute(class=>'paragraph') + ->set_attribute({class => 'paragraph', name => 'test'}) ->then ->add_to_attribute(class=>'divider');