Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: HTML::TreeBuilder::XPath returns things I don't need?

by choroba (Archbishop)
on Oct 06, 2014 at 15:38 UTC ( #1102985=note: print w/replies, xml ) Need Help??


in reply to HTML::TreeBuilder::XPath returns things I don't need?

The <title> tag is valid in the <head> only in HTML. The parser tries to fix the misplaced titles for you, try dumping $tree to see how.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: HTML::TreeBuilder::XPath returns things I don't need?
by szabgab (Priest) on Oct 06, 2014 at 15:58 UTC
    I see. I tried it inside the body with elements in different locations and it worked as I expected. Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1102985]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2022-10-03 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (13 votes). Check out past polls.

    Notices?