Hi,
i am using a library (gwt-graphics) that implements SVG elements by
extending the Widget class. Widget internally calls Dom.isOrHasChild() for
its event handling, but this causes a failure on IE9 as the method
contains() is not implemented for SVG elements. A possible solution would
be to use the compareDocumentPosition() function in DOMImplIE9, similar to
DOMImplMozilla:
@Override
public native boolean isOrHasChild(Node parent, Node child) /*-{
// For more information about compareDocumentPosition, see:
// http://www.quirksmode.org/blog/archives/2006/01/contains_for_mo.html
return (parent === child) || !!(parent.compareDocumentPosition(child) &
16);
}-*/;
Has anyone encountered this before or submitted an issue for this problem ?
Kind Regards,
Jan
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.