W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2000

Dom Structure and getting parents

From: Scott Dossett <sdossett@metaphoria.net>
Date: Thu, 29 Jun 2000 09:11:30 -0400
Message-ID: <000901bfe1cb$8c1ffae0$046f10ac@duesenberg>
To: "HTMLTidy" <html-tidy@w3.org>
When using Tidy.parseDom(), I am experiencing inconsitencies when attempting
to get the parent element of a particular HTML tag within the DOM.  For

        <META>MetaInfo 1</META>
        <TITLE>Contrived Example</TITLE>
        <META>MetaInfo 2</META>
        <SCRIPT language="JavaScript">..

In examples similar to this, I am calling getParent() on the "<BODY>"
element and
"<META>MetaInfo 2</META>" is being returned to me.  The parent of the
SCRIPT element is also returning "<META>MetaInfo 2</META>" .

Has anyone else experienced this particular problem?  Any suggestions would
greatly appreciated.

Scott Dossett
Received on Thursday, 29 June 2000 09:05:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC