|
From: Mike B. <mb...@Ga...> - 2003-07-21 13:15:17
|
> I was doing some debugging of one of my tests and I found a rather
> interesting thing: if I place a <font> tag inside an anchor <a> tag,
> then the parser duplicates that anchor. But, according to the
> Transitional DTD for HTML 4.01, it is valid to place a <font> inside
> a <a>.
I just tried this with the latest version of NekoHTML (the parser used
inside HtmlUnit) and it appears to be doing the right thing. The output
I get is:
org.apache.html.dom.HTMLDocumentImpl
org.apache.html.dom.HTMLHtmlElementImpl
org.apache.xerces.dom.TextImpl
org.apache.html.dom.HTMLHeadElementImpl
org.apache.xerces.dom.TextImpl
org.apache.html.dom.HTMLTitleElementImpl
org.apache.xerces.dom.TextImpl
org.apache.xerces.dom.TextImpl
org.apache.html.dom.HTMLMetaElementImpl
org.apache.xerces.dom.TextImpl
org.apache.xerces.dom.TextImpl
org.apache.html.dom.HTMLBodyElementImpl
org.apache.xerces.dom.TextImpl
org.apache.html.dom.HTMLParagraphElementImpl
org.apache.html.dom.HTMLAnchorElementImpl
org.apache.html.dom.HTMLFontElementImpl
org.apache.xerces.dom.TextImpl
org.apache.xerces.dom.TextImpl
org.apache.html.dom.HTMLParagraphElementImpl
org.apache.html.dom.HTMLFontElementImpl
org.apache.html.dom.HTMLAnchorElementImpl
org.apache.xerces.dom.TextImpl
org.apache.xerces.dom.TextImpl
If you are using the HtmlUnit code from CVS then you will already have
the latest version of NekoHTML. If not, then you can download it from
http://www.apache.org/~andyc/neko/doc/html/index.html
Let me know if this latest NekoHTML isn't fixing your problem.
--
Mike Bowler
Principal, Gargoyle Software Inc.
Voice: (416) 822-0973 | Email : mb...@Ga...
Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com
|