Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/beans
In directory sc8-pr-cvs1:/tmp/cvs-serv25697/beans
Modified Files:
BeanyBaby.java StringBean.java
Log Message:
Made visiting order the same order as on the page.
The 'shouldRecurseSelf' boolean of NodeVisitor could probably
be removed since it doesn't make much sense any more.
Fixed StringBean, which was still looking for end tags with names starting with
a slash, i.e. "/SCRIPT", silly beany.
Added some debugging support to the lexer, you can easily base a breakpoint on
line number.
Index: BeanyBaby.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/beans/BeanyBaby.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** BeanyBaby.java 26 Oct 2003 19:46:17 -0000 1.17
--- BeanyBaby.java 4 Nov 2003 01:25:02 -0000 1.18
***************
*** 371,375 ****
BeanyBaby bb = new BeanyBaby ();
bb.show ();
! bb.setURL ("http://www.netbeans.org");
}
}
--- 371,375 ----
BeanyBaby bb = new BeanyBaby ();
bb.show ();
! bb.setURL ("http://www.slashdot.org");
}
}
Index: StringBean.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/beans/StringBean.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** StringBean.java 26 Oct 2003 19:46:17 -0000 1.30
--- StringBean.java 4 Nov 2003 01:25:02 -0000 1.31
***************
*** 162,166 ****
public StringBean ()
{
! super (true, false);
mPropertySupport = new PropertyChangeSupport (this);
mParser = new Parser ();
--- 162,166 ----
public StringBean ()
{
! super (true, true);
mPropertySupport = new PropertyChangeSupport (this);
mParser = new Parser ();
***************
*** 624,630 ****
name = tag.getTagName ();
! if (name.equalsIgnoreCase ("/PRE"))
mIsPre = false;
! else if (name.equalsIgnoreCase ("/SCRIPT"))
mIsScript = false;
}
--- 624,630 ----
name = tag.getTagName ();
! if (name.equalsIgnoreCase ("PRE"))
mIsPre = false;
! else if (name.equalsIgnoreCase ("SCRIPT"))
mIsScript = false;
}
|