Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25403/src/org/htmlparser
Modified Files:
PrototypicalNodeFactory.java
Log Message:
Added support for P and h1-h6 tags.
Added support for definition list tags (dl, dt, dd).
Let table row/column tags know when to close if encounter TBODY/TFOOT/THEAD.
Index: PrototypicalNodeFactory.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/PrototypicalNodeFactory.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** PrototypicalNodeFactory.java 24 Apr 2005 17:48:27 -0000 1.15
--- PrototypicalNodeFactory.java 31 Oct 2005 16:26:11 -0000 1.16
***************
*** 43,46 ****
--- 43,48 ----
import org.htmlparser.tags.Bullet;
import org.htmlparser.tags.BulletList;
+ import org.htmlparser.tags.DefinitionList;
+ import org.htmlparser.tags.DefinitionListBullet;
import org.htmlparser.tags.Div;
import org.htmlparser.tags.DoctypeTag;
***************
*** 48,51 ****
--- 50,54 ----
import org.htmlparser.tags.FrameSetTag;
import org.htmlparser.tags.FrameTag;
+ import org.htmlparser.tags.HeadingTag;
import org.htmlparser.tags.HeadTag;
import org.htmlparser.tags.Html;
***************
*** 58,61 ****
--- 61,65 ----
import org.htmlparser.tags.ObjectTag;
import org.htmlparser.tags.OptionTag;
+ import org.htmlparser.tags.ParagraphTag;
import org.htmlparser.tags.ScriptTag;
import org.htmlparser.tags.SelectTag;
***************
*** 299,306 ****
--- 303,313 ----
registerTag (new Bullet ());
registerTag (new BulletList ());
+ registerTag (new DefinitionList ());
+ registerTag (new DefinitionListBullet ());
registerTag (new DoctypeTag ());
registerTag (new FormTag ());
registerTag (new FrameSetTag ());
registerTag (new FrameTag ());
+ registerTag (new HeadingTag ());
registerTag (new ImageTag ());
registerTag (new InputTag ());
***************
*** 311,314 ****
--- 318,322 ----
registerTag (new ObjectTag ());
registerTag (new OptionTag ());
+ registerTag (new ParagraphTag ());
registerTag (new ScriptTag ());
registerTag (new SelectTag ());
***************
*** 325,328 ****
--- 333,337 ----
registerTag (new HeadTag ());
registerTag (new Html ());
+
return (this);
|