- From: Joseph Kesselman <keshlam@us.ibm.com>
- Date: Tue, 8 May 2001 13:13:07 -0400
- To: www-dom@w3.org
>is it the responsibility of the 'importNode' function to take care of ID >attributes? Yes, _IF_ the importing DOM understands IDs and has the information available to determine whether an attribute is or isn't an ID. As you point out, this currently relies on some undocumented and unexposed magic within the DOM implementation, so the right answer is to check your DOM implementation's documentation to find out what it does. (Not all DOMs have or use ID information, as we mentioned in the description of getElementByID.) Note that the question of which attributes are and aren't IDs would be determined by the importing document, _not_ by the source document. Again, DOM Level 3's DTD/Schema support will provide a more rigorous definition of this behavior, for those DOMs which choose to implement that module. ______________________________________ Joe Kesselman / IBM Research
Received on Tuesday, 8 May 2001 13:13:47 UTC