[jdom-interest] Bug for TODO with addAdditionalNamespaces()
Jason Hunter
jhunter at collab.net
Fri Mar 30 11:30:19 PST 2001
This is in the TODO:
* Fix bug where addNamespaceDeclaration() doesn't check for conflicts
with the same prefix already existing on the element or being the
element's own prefix already
You don't actually have to walk up the tree to fix this, because you can
override a prefix at any point; you just can't have to decl's of the
same prefix on the same element.
-jh-
philip.nelson at omniresources.com wrote:
>
> I keep forgetting to mention this. JDOM incorrectly allows multiple default
> namespaces to be added to elements. I'll put in a test in the test suite
> and release it as a failing test until we get it working. The fix could be
> a little painful though. Since default namespaces have slightly different
> rules than prefixed namespaces, we can't just check to see if the namespace
> we are adding is already there. You would also hate to have to traverse the
> list of namespaces to see if any default namespace has been added (ignoring
> NO_NAMESPACE I suppose) but guess that would be a first pass implementation
> approach.
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list