You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Peter G. Lane" <la...@mcs.anl.gov> on 2003/04/23 23:55:05 UTC

Weird bug with experimental DocumentImpl.adoptNode()

I'm experiencing some weird behavior where I use DocumentImpl.adoptNode() on an Element and later a 
getAttribute() call on the adopted Element returns the document namespace instead of the attribute. 
  Oddly enough a pre-call to getAttribute() causes the later call to function properly.  I also 
reproduced the behavior when doing a getAttributes().item(0).getValue() on the adopted Element and 
compared the two.  It seems the getValue() call (internal to getAttribute() for the former case) is 
what actually makes the difference.

I will try to make a more concise example/test when I have time, but I figured I'd probe the list to 
see if this made any sense to anybody.

Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org