This has cost me a few hours of my life. I have been using the perl module HTML::TreeBuilder and experienced a very weird behavior: it simply retrieved incomplete HTML code when using the look_down function in some cases ( I am using it to retrieve blog articles from a blog ) and it looked like this happened in cases when the retrieved HTML code contained nested tables, something like …
After a few hours of investigation and trying this and that I noticed this suspicious <wbr> tag in my HTML code and learned it is used to indicate to the browser that it might insert a word break if it wishes.
I decided to get rid of it and changed my perl codes as follows:
And bingo – my problem is gone !