X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=t%2Fq;fp=t%2Fq;h=0000000000000000000000000000000000000000;hb=232ddc4964d8346652e2f047d354699d329c4f22;hp=d0796e260357ded6241caad2805827f1b3285246;hpb=f12dee13f707a4bdfe7c209b8825552cb7a7903d;p=html-element-library.git diff --git a/t/q b/t/q deleted file mode 100644 index d0796e2..0000000 --- a/t/q +++ /dev/null @@ -1,23 +0,0 @@ -# I am trying to run this code: - -$t1 = HTML::TreeBuilder->new_from_content ( $html ) ; - -my $found= $t1->look_down(id => 'findme'); - -warn "blessed as: $found"; -bless $found, 'HTML::Element::Library'; -warn "blessed as: $found"; - -my @found = $found->position; -warn "@found"; - -# But I get this error (it is part of a test suite): - -blessed as: HTML::Element=HASH(0x81632d8) at t/position.t line 31. -blessed as: HTML::Element::Library=HASH(0x81632d8) at t/position.t line 33. -Can't locate object method "addr" via package "HTML::Element" at /home/terry/perl/hax/HTML-Element-Library/blib/lib/HTML/Element/Library.pm line 66. - -# What I don't understand is why it says it can't locate the method "addr" -# in package HTML::Element when the method was reblessed as -# HTML::Element::Library and sub addr is right here in the package -# HTML::Element::Library