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

Re: A few questions

From: Mike Champion <mcc@arbortext.com>
Date: Tue, 19 May 1998 22:03:00 -0400
Message-Id: <98May19.220315edt.26881@thicket.arbortext.com>
To: "Don Park" <donpark@quake.net>, <www-dom@w3.org>
At 09:54 PM 5/19/98 -0400, Don Park wrote:
>Hi Mike,
>
>>>If an Attribute is a Node, and you call getParent on it, what should it
>>>return?
>>
>>The Element (IMHO)
>
>
>This is what I thought also until I realized that it could cause problems if
>an Attribute is shared among multiple element (this could happen if the
>attribute is FIXED or is inherited as DEFAULT value).

That's a really good point; I'm pretty sure that one SHOULD have separate
attribute objects in this scenario, but we should clarify it ...

>  Furthermore, I think
>it is confusing to have getParent returned the element when Attribute is not
>a child of the element.

Yes ... but if I have an Attribute object and I want to find out which
Element it belongs to, getParent() would be a logical way ... What do
others think?

Mike
Received on Tuesday, 19 May 1998 22:06:20 GMT

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