[Htmlparser-cvs] htmlparser/src/org/htmlparser/tags CompositeTag.java,1.62,1.63
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-11-04 01:25:06
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags In directory sc8-pr-cvs1:/tmp/cvs-serv25697/tags Modified Files: CompositeTag.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: CompositeTag.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/CompositeTag.java,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** CompositeTag.java 1 Nov 2003 21:55:43 -0000 1.62 --- CompositeTag.java 4 Nov 2003 01:25:02 -0000 1.63 *************** *** 326,329 **** --- 326,331 ---- Node child; + if (visitor.shouldRecurseSelf ()) + visitor.visitTag (this); if (visitor.shouldRecurseChildren ()) { *************** *** 340,345 **** getEndTag ().accept (visitor); } - if (visitor.shouldRecurseSelf ()) - visitor.visitTag (this); } --- 342,345 ---- |