W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

importNode and handling of ID attributes

From: Karl Scheibelhofer <Karl.Scheibelhofer@iaik.at>
Date: Tue, 8 May 2001 14:09:09 +0200
To: <www-dom@w3.org>
Message-ID: <NDBBJJNFOMNNKFDPLCDJOEEFCIAA.Karl.Scheibelhofer@iaik.at>
perhaphs, one of you could clearify this issue.

is it the responsibility of the 'importNode' function to take care of ID
attributes? i mean, should it investigate all imported attributes, if they
are of type ID and register them to the document, such that a subsequent
call to 'getElementById' really returns the expected result node. if the
'importNode' function does not care about ID attributes, the
'getElementById' is sort of useless after a call to 'importNode'. moreover,
the application has no means to find out what attributes are of type ID and
no way to register IDs to a document.
i am aware of the fact that this can only work, if the attributes are of the
same implementation.

xerces-j for instance, does not care about the IDs. but i think this is not
the right solution. in a current project, i realized that importNode is
useless as it is, if you need IDs.

regards

  Karl Scheibelhofer

--

Karl Scheibelhofer, <mailto:Karl.Scheibelhofer@iaik.at>
Institute for Applied Information Processing and Communications (IAIK)
at Technical University of Graz, Austria, http://www.iaik.at
Phone: (+43) (316) 873-5540
Received on Tuesday, 8 May 2001 08:07:47 GMT

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