Marek Rouchal DAT CAD HW Tel 25849 wrote:
>[...] By the way, why doesn't CPAN.pm list HTML-Tree-0.61 yet?

I was just wondering that myself.  It must be on some mirrors
somewhere, or noone could have gotten it yet -- but it seems to be
missing from others.
I'm going to try to emit an HTML-Tree 0.62 tonight; let's see if the
problem recurs.

(If anyone can sees anything to do with my dist of 0.61 that could
have confused CPAN (if that's even possible), do say so now!)


The main change in 0.62 is that the delete and delete_content methods
now behave right, and I've added an overriding delete method in
TreeBuilder:

sub delete {
  # Override Element's delete method.
  # This does most, if not all, of what Element's delete does anyway.
  # Deletes content, including content in some special attributes.
  # But doesn't empty out the hash.

  for (@{ delete($_[0]->{'_content'})
          || []
        }, # all/any content
       delete @{$_[0]}{'_body', '_head', '_pos'}
         # ...and these, in case these elements don't appear in the
         #   content, which is possible.  If they did appear (as they
         #   usually do), then calling $_->delete on them again is harmless.
      )
  {
    $_->delete
     if defined $_ and ref $_   #  Make sure it's an object.
        and $_ ne $_[0];   #  And avoid hitting myself, just in case!
  }

  return undef;
}

Should this do right by whatever the new Parser wants done?

-- 
Sean M. Burke  [EMAIL PROTECTED]  http://www.netadventure.net/~sburke/

Reply via email to