i contacted the DOM mailing list for clarification. here is an answer: -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Joseph Kesselman Sent: Tuesday, May 08, 2001 7:13 PM To: [EMAIL PROTECTED] Subject: Re: importNode and handling of ID attributes
>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 > -----Original Message----- > From: Andy Clark [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2001 11:45 AM > To: [EMAIL PROTECTED] > Subject: Re: importNode does not care about IDs > > > Karl Scheibelhofer wrote: > > you misunderstood me, i think. > > I believe that I understand your question. But maintaining > ID state on importNode doesn't make much sense. It's a shame > that the DOM doesn't have a standard way of registering ID > attributes in the document but I don't think that the DOM > implementation should carry those IDs over to the document > where the node is imported. Arnaud: what is your opinion? > > -- > Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
