Hi Michael,
Simply remove the element from the document tree before modifying it.
I would suggest getting it's nextSibling and using that with the parent to
reinsert it in the proper place in the document:
Node parent = e.getParentNode();
Node sibling = e.getNextSibling();
parent.removeChild(e);
// Make changes to e.
parent.inserBefore(e, sibling); // restore to proper place in
document.
"Bishop, Michael W. CONTR J9C880" <[EMAIL PROTECTED]> wrote on
07/07/2006 03:25:30 PM:
> OK, say I?m updating the attributes of an element. In a single method
(run
> inside the JSVGCanvas UpdateManager), I remove all the attributes from
the
> element and put the new ones in. I do it this way to ensure I don?t
leave
> anything extra.
> For example:
>
> Element A has attributes x, y, z.
> I get an updated version of the element that updates x, but also has
(only)
> attributes v and w.
>
> In order to get to the proper update state of x, v, w, I remove all the
> attributes from A and then set all the attributes contained in the
update.
>
> The problem is that if attribute x is required, I get the JSVGCanvas
pop-up
> saying it?s required, even though I immediately replace the attribute in
the
> same element. How can I disable those pop-ups until I?m done messing
with theDOM tree?
>
> Michael Bishop
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]