Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data
In directory sc8-pr-cvs1:/tmp/cvs-serv9618/tags/data
Modified Files:
TagData.java
Log Message:
Add bean like accessors for positions on Node, AbstractNode and AbstractNodeDecorator.
Handle null page in Cursor.
Add smartquotes mode in Lexer and CompositeTagScannerHelper.
Add simple name constructor in Attribute.
Remove emptyxmltag member, replace with computing accessors in TagNode.
Removed ScriptScannerHelper and moved scanning logic to ScriptScanner.
Reworked extractImageLocn in ImageScanner
Implement extractXMLData in TagScanner.
Made virtual tags zero length in TagData.
Added push() to IteratorImpl.
Added single node constructor to NodeList.
Numerous and various test adjustments. Still 133 failures.
Index: TagData.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tags/data/TagData.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -d -r1.33 -r1.34
*** TagData.java 3 Oct 2003 02:15:20 -0000 1.33
--- TagData.java 5 Oct 2003 13:49:53 -0000 1.34
***************
*** 32,35 ****
--- 32,36 ----
import org.htmlparser.lexer.Cursor;
import org.htmlparser.lexer.Page;
+ import org.htmlparser.lexer.nodes.Attribute;
import org.htmlparser.util.ParserException;
***************
*** 68,76 ****
null,
tagBegin,
! tagBegin + name.length () + 2 + (isXmlEndTag ? 1 : 0),
attributes,
urlBeingParsed,
isXmlEndTag);
! // todo: add attribute sizes
}
--- 69,80 ----
null,
tagBegin,
! tagBegin, // a virtual node has no length, + name.length () + 2 + (isXmlEndTag ? 1 : 0),
! // was a todo: add attribute sizes to length
attributes,
urlBeingParsed,
isXmlEndTag);
! if (null != name && (0 == attributes.size ()))
! attributes.insertElementAt (new Attribute (name), 0);
!
}
|