Subject: | bug |
Date: | Tue, 29 Jun 2010 18:21:23 +0530 |
To: | bug-HTML-Tree [...] rt.cpan.org |
From: | Ashish Almeida <ashishfa [...] gmail.com> |
Dear Pete Krawczyk,
ubuntu 9.10
perl, v5.10.0
HTML::Element::3.23
*as_text() *
when i fetch text using this function, the text sticks to each other even
when it is under separate tags.
there should be some white space or other user-defined separator character
between words when they belong to different tags
since the words stick to each other, I get unexpected errors when i use
complete word based search. (query word do not match to words which are at
the end or start of the tags since they stick to adjoining words)
e.g.
<div><a>TATA Manza</a>This is a best car you can buy... </div>
this returns
TATA ManzaThis is a best car you can buy...
and the search query for "Manza" as a full word match fails since my system
treats "ManzaThis" as a single word.
Regards
Ashish
--
Ashish Almeida
---------------------------------