W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Accessing containing element from contentDocument

From: ValerieGSharp <ValerieGSharp@netscapeonline.co.uk>
Date: Sun, 27 May 2001 13:24:43 +0100
Message-ID: <3B10F20B.F46D810@netscapeonline.co.uk>
To: "www-dom@w3.org" <www-dom@w3.org>
Been mulling over this issue in netscape.public.mozilla.dom, and
wondering if there's an existing DOM route for accessing the containing
FRAME/OBJECT from within a contentDocument that I may have overlooked,
or if this possible requirement has been overlooked in the DOM.

(OK, so generally within existing browsers there are ways of accessing
the containing FRAME or OBJECT, as long as it's been given a 'name'
attribute. But it doesn't seem satisfactory that this should be left to
proprietory properties relying upon a sometimes deprecated attribute.)


Perhaps what's required is a property of Document, maybe along the lines
of:

 contextElement of type Element, readonly 
      This is a convenience attribute that allows direct access to
      the node that is the "IFRAME", "FRAME" or "OBJECT" containing
      element of the document, or null if there is no such element.


-- 
Regards,
Val Sharp - Edinburgh
Received on Sunday, 27 May 2001 08:28:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT