Menu

#8 Patch for bug in TextNode

open
nobody
None
5
2006-09-13
2006-09-13
damh
No

org.htmlparser.nodes.TextNode should be replaced:

/**
* Returns if the node consists of only white space.
* White space can be spaces, new lines, etc.
*/
public boolean isWhiteSpace()
{
String text;

text = mText;
if (null == text)
text = mPage.getText (getStartPosition (),
getEndPosition ());

if (text == null || text.trim().equals(""))
return true;
return false;
}

BUG in old version:
If mText is unchanged, it always return true.

Discussion

  • damh

    damh - 2006-09-13

    same data as file

     
  • Derrick Oswald

    Derrick Oswald - 2007-03-04

    Logged In: YES
    user_id=605407
    Originator: NO

    Applied to version 2.0.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.