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
example:

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

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
be
greatly appreciated.

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT