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 the DOM tree?

 

Michael Bishop

Reply via email to