On 12/05/2012 11:25 PM, parlay via RT wrote:
Show quoted text> Queue: HTML-TreeBuilder-XPath
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=81722 >
>
> On Wed Dec 05 11:42:17 2012, xmltwig@gmail.com wrote:
>> On 12/05/2012 05:15 PM, parlay via RT wrote:
>>> Wed Dec 05 11:15:08 2012: Request 81722 was acted upon.
>
>> Actually I believe HTML::TreeBuilder does the lowercasing, so a doc
>> patch for that module would be the proper fix.
>
> So does that mean you don't think this is a problem and it shouldn't be
> fixed here? It took me forever to track down why my script using
> Web::Scraper wasn't working and even if it was documented in
> HTML::TreeBuilder, I doubt I would have figured out to look there.
Why would you not look in HTML::TreeBuilder? It's listed in
HTML::TreeBuilder::XPath's manpage, in the "See Also" section.
All HTML::TreeBuilder::XPath does is add a few methods to
HTML::TreeBuilder, so most of the docs are there.
if a query doesn't seem to get the results you want, it would also seem
natural to dump the HTML to see how HTML::TreeBuilder::XPath sees it:
perl -MHTML::TreeBuilder::XPath -E'say
HTML::TreeBuilder::XPath->new_from_content( q{<html><head><meta
Content="foo" Name="Description"/></head><body><p>bar</p>})->as_HTML'
--
mirod