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

* 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