Weird bug with experimental DocumentImpl.adoptNode() 2003-04-23 - By Peter G. Lane
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@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|