Skip Menu |
 

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 21114
Status: resolved
Priority: 0/
Queue: HTML-Tree

People
Owner: Nobody in particular
Requestors: suhachov [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 3.22



Resent-Date: Mon, 21 Aug 2006 21:03:07 -0500 (CDT)
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.5 required=8.0 tests=BAYES_00,DK_SIGNED,FORGED_RCVD_HELO,SPF_PASS
Resent-Message-Id: <Pine.LNX.4.44.0608212103070.4948 [...] equerry.bsod.net>
Content-Disposition: inline
Received-SPF: pass (x1.develooper.com: domain of petek [...] ignore.us designates 209.172.129.42 as permitted sender)
Received-SPF: pass (x1.develooper.com: domain of suhachov [...] gmail.com designates 64.233.182.185 as permitted sender)
X-Old-Spam-Check-BY: la.mx.develooper.com
X-Spam-Rating: equerry.bsod.net 1.6.2.petek 0/1000/N
X-Spam-Rating: equerry.bsod.net 1.6.2.petek 0/1000/N
content-type: text/plain; charset="utf-8"; format="flowed"
X-Received: (qmail 13733 invoked by alias); 21 Aug 2006 07:00:08 -0000
X-Received: (qmail 13730 invoked from network); 21 Aug 2006 07:00:08 -0000
X-Received: from ss1.fabel.dk (HELO x1.develooper.com) (63.251.223.179) by equerry.bsod.net with SMTP; 21 Aug 2006 07:00:08 -0000
X-Received: (qmail 23260 invoked by uid 225); 21 Aug 2006 07:00:07 -0000
X-Received: (qmail 23188 invoked by alias); 21 Aug 2006 07:00:02 -0000
X-Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.185) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 21 Aug 2006 00:00:00 -0700
X-Received: by nf-out-0910.google.com with SMTP id o25so1813307nfa for <petek [...] cpan.org>; Sun, 20 Aug 2006 23:59:53 -0700 (PDT)
X-Received: by 10.49.29.3 with SMTP id g3mr7318064nfj; Sun, 20 Aug 2006 23:59:53 -0700 (PDT)
X-Received: by 10.49.22.4 with HTTP; Sun, 20 Aug 2006 23:59:53 -0700 (PDT)
Resent-To: bug-html-tree [...] rt.cpan.org
Resent-Subject: HTML::Element bug?
Received: from la.mx.develooper.com (ss1.fabel.dk [63.251.223.179]) by diesel.bestpractical.com (Postfix) with SMTP id 954B64D8224 for <bug-html-tree [...] rt.cpan.org>; Mon, 21 Aug 2006 22:05:28 -0400 (EDT)
Received: (qmail 19528 invoked by alias); 22 Aug 2006 02:05:27 -0000
Received: from equerry.bsod.net (HELO equerry.bsod.net) (209.172.129.42) by la.mx.develooper.com (qpsmtpd/0.28) with SMTP; Mon, 21 Aug 2006 19:05:23 -0700
Received: (qmail 29658 invoked from network); 22 Aug 2006 02:05:13 -0000
Received: from localhost.mc.net (HELO localhost.localdomain) (127.0.0.1) by equerry.bsod.net with SMTP; 22 Aug 2006 02:05:13 -0000
Delivered-To: cpan-bug+html-tree [...] diesel.bestpractical.com
Delivered-To: petek-direct [...] equerry.bsod.net
Delivered-To: perl [...] bsod.net
Delivered-To: petek [...] cpan.org
Resent-From: Pete Krawczyk <petek [...] ignore.us>
Subject: HTML::Element bug?
Return-Path: <petek [...] ignore.us>
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=mYXycj1rCs1ml1RO2sXRCjSX2TcX3WHWukVf4HX3aTrFT2ZdJIYIjbInNvcMeinVaDgfO4REqitr2irg3Snf5YZm6ZqaODl8jIILVYC/Hii/zoSXWoPDV+UJZODVV2NZByEYe+RCPBwD6xqEyyco+vzJKQwrUNjSYEn4x/YGFGI=
X-Original-To: bug-html-tree [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
X-Old-Spam-Status: No, hits=-2.4 required=8.0 tests=BAYES_00,DK_SIGNED,DK_VERIFIED,DNS_FROM_RFC_ABUSE,SPF_PASS
Date: Mon, 21 Aug 2006 10:59:53 +0400
Message-Id: <c937d3980608202359u10214cf6ra527fb5d07a6817c [...] mail.gmail.com>
To: petek [...] cpan.org
Content-Transfer-Encoding: 7bit
From: "Andrew Suhachov" <suhachov [...] gmail.com>
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 954
Download (untitled) / with headers
text/plain 954b
Hello. I've found that following code doesn't work: $tree->look_down( _tag=>'tr', sub { my $tr = shift; $tr->look_down( _tag=>'td', _parent=>$tr) ? 1 : 0; } ) (i.e. I want to find all TD that are direct children of TR.). This doesn't work, because of the following code in HTML::Element package: or ( $c->[2] eq 'Regexp' ? $val !~ $c->[1] : ( ref $val ne $c->[2] # have unequal ref values => fail or lc($val) ne $c->[1] # have unequal lc string values => fail )) Passed reference is compared with LOWERCASED sample. If I pass: _parent => lc $tr this doesn't work too, because "ref $val ne $c->[2]" fails. Of course, I can write: "sub {$_[0]->_parent eq $tr}" instead of "_parent=>$tr" but I think this is ugly and slow :( So I can suggest a patch: or lc($val) ne $c->[1] replace with or lc($val) ne lc($c->[1]) I did it in my local copy and this works fine. -- Best regards, Andrew.
MIME-Version: 1.0
In-Reply-To: <c937d3980608202359u10214cf6ra527fb5d07a6817c [...] mail.gmail.com>
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Disposition: inline
Message-Id: <rt-3.6.HEAD-25540-1163298593-105.21114-0-0 [...] rt.cpan.org>
References: <c937d3980608202359u10214cf6ra527fb5d07a6817c [...] mail.gmail.com>
Content-Type: text/plain; charset="utf8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Original-Encoding: utf-8
Content-Length: 105
Download (untitled) / with headers
text/plain 105b
Resolved as part of HTML-Tree 3.22, which will be released this weekend as part of the Chicago Hackathon.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.