W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2002

event listeners and ids with Range cloning methods

From: Dylan Schiemann <dylans@yahoo.com>
Date: Mon, 15 Jul 2002 00:11:26 -0700 (PDT)
Message-ID: <20020715071126.26180.qmail@web13503.mail.yahoo.com>
To: www-dom@w3.org

A couple of questions about the Range for which I'd
appreciate confirmation or clarification:

- should cloneContents clone eventListeners?  Based on
behavior for cloneNode and the Events spec., I would
guess no.  If it did, this raises issues for
partially-selected nodes.

- should extractNodes maintain eventListeners? If this
method is considered cloning, then I would guess no. 
If so, then I see issues with extracting
partially-selected nodes.

- should cloneNodes and extractNodes clone attributes
that are of type id, or other attribute types that
expect uniqueness?  I'm guessing that it is allowed
since I don't see any exceptions for validity.  If I
am correct, what is the user of an implementation
recommened to do to use the Range without creating
invalid markup?  For an html document, I could see
removing id attributes from nodes in the cloned
fragment before adding it to the document 

Dylan Schiemann


Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
Received on Monday, 15 July 2002 03:11:28 UTC

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