hi,

> -----Original Message-----
> From: Andy Clark [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 20, 2001 7:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: importNode does not care about IDs
>
>
> Karl Scheibelhofer wrote:
> > if i use importNode to import elements, Xerces (1.3.0 and
> 1.3.1) does not
> > care about identifiers and does not register them to the new document. i
> > think this is a bug. not registering the IDs to the new
> document does not
> > really make sense. does anyone have a different opinion?
>
> My opinion is that importNode is an editing feature and the
> application is responsible for maintaining correct state when
> editing. The nodes could be imported into a document with a
> completely different grammar. In this case, what do the IDs
> mean?

you misunderstood me, i think. i am talking about identifiers of type ID
according to XML 1.0 not any application specific identifiers. the DOM
implementation should not take care about the content of the IDs, it should
jsut ensure that they are unique in the document and that
Document.getElementById(String) returns the right result.
that importNode or appendChild takes care about the IDs i think is the only
solution that makes sense, because there is no way to put IDs into a
document through the standard DOM API.
moreover, if the implementation does not take care about this at importNode
or appendChild, a subsequent call to Document.getElementById(String) does
not return the intended result. the Document.getElementById(String) would
not make any sense at all, because it might work or not - this is useless.

regards

  Karl


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to