Skip Menu |
 

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

Report information
The Basics
Id: 108476
Status: new
Priority: 0/
Queue: HTML-TreeBuilder-Select

People
Owner: Nobody in particular
Requestors: SHIBAZAKI [...] cpan.org
Cc: shibayu36 [...] gmail.com
AdminCc:

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



CC: shibayu36 [...] gmail.com
Subject: New feature: Select elements from children elements
Download (untitled) / with headers
text/plain 842b
I want to search elements from the children of the element which I called `select` method. If we use this module, we can select elements only from HTML root elements like below. Sample HTML ``` <html><body> <p id="a"><a href="/hoge">hoge</a></p> <p id="b"><a href="/fuga">fuga</a></p> </body></html> ``` ``` my $tree = HTML::TreeBuilder::Select->new; $tree->parse_content($html); # we can select the element having id="a" my $element_id_a = $tree->select('#a'); # I want to select elements under this element, # but I cannot. my @a_tags = $element_id_a->select('a'); warn scalar @a_tags; # I want to select the element "<a href="/hoge">hoge</a>". # But 2 elements found, # because this method only searched elements from the root element. ``` I tried to make a pull request, but I could not find the repository. What should I do?


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.