CC: | shibayu36 [...] gmail.com |
Subject: | New feature: Select elements from children elements |
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?