[Htmlparser-user] why some font tag are NOT treated as parent node of the related text node?
Brought to you by:
derrickoswald
From: Brandy Y. <ye...@gm...> - 2006-04-23 00:31:45
|
Hello, all I'm a newbie of Htmlparser. I have a question when I wrote my first sample using Htmlparser, something to show the html structures. When I use "getParent()" to get the parent of a text node, some tags such a= s "<b>" and "<i>" are not treated as its parent node. The html to be parsed: <html> <title>test.html</title> <body> <b> <h1> content </h1> </font> </body> </html> and the parent nodes of "content" are: h1, body, html (but NO b). Is it the expected behaviour? I found headingTag (h1,h2...) was not treated as parent node too in Htmlparser1.5. |