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 

Thanks,
Dylan Schiemann

--
http://www.sitepen.com/
http://www.dylanschiemann.com/

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com
Received on Monday, 15 July 2002 03:11:28 GMT

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