W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2006

Re: Is appendChild/insertBefore() supposed to raise exceptions for attributes?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 22 Dec 2006 13:43:09 +0100
To: Frans Englich <frans.englich@telia.com>
Cc: www-dom@w3.org
Message-ID: <ifkno298sbjvu2bno2t4qe22irj13k67kh@hive.bjoern.hoehrmann.de>

* Frans Englich wrote:
>Also, how should one set ownerElement of the Attr when calling 
>setAttributeNode? Should setAttributeNode do it? The spec doesn't say that, 
>as far as I can tell.

The .ownerElement attribute is always "The Element node this attribute
is attached to or null if this attribute is not in use." It would not be
if setAttributeNode does not change the attribute, and so an implemen-
tation would be non-conforming. The DOM specifications tell you what is,
or what must be if you must, they don't always tell you the exact steps
to get there.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 22 December 2006 12:49:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:13 UTC