[Htmlparser-cvs] htmlparser/src/org/htmlparser/tags/data TagData.java,1.32,1.33
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-10-03 02:15:26
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data In directory sc8-pr-cvs1:/tmp/cvs-serv23938/tags/data Modified Files: TagData.java Log Message: Fix all testcases generating exceptions. Still 160 failures. Index: TagData.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data/TagData.java,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** TagData.java 28 Sep 2003 15:33:58 -0000 1.32 --- TagData.java 3 Oct 2003 02:15:20 -0000 1.33 *************** *** 30,34 **** --- 30,36 ---- import java.util.Vector; + import org.htmlparser.lexer.Cursor; import org.htmlparser.lexer.Page; + import org.htmlparser.util.ParserException; public class TagData { *************** *** 121,124 **** --- 123,136 ---- tagBegin = 0; tagEnd = tagContents.length (); + // TODO: this really needs work + try + { + Cursor cursor = new Cursor (mPage, tagBegin); + for (int i = tagBegin; i < tagEnd; i++) + mPage.getCharacter (cursor); + } + catch (ParserException pe) + { + } mAttributes = attributes; urlBeingParsed = url; |