Independent of memory management, one _SHOULD_ never create a DOM Node
object directly. The DOM's factory methods (Document.create...()) generally
perform addiitonal implementation-specific and non-public initialization to
make sure that the node will function properly in the context of a specific
document.  Bypassing those by allocating the object directly is likely to
produce an object which does not function properly per the DOM spec.

You may be able to get away with new'ing nodes in a few (very few, I
suspect!) implementations of the DOM. It's _extremely_ nonportable, and may
not work in the next DOM you try, including the next release of the same
library.

Don't cheat; you're only cheating yourself.


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

Reply via email to