tida1 / gwt-selection

Automatically exported from code.google.com/p/gwt-selection
0 stars 0 forks source link

Exception calling Range.getCommonAncestor() #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Calling Range.getCommonAncestor() throws an Exception ("member 
getCommonAncestor is not a  function", using gwt 2.3 and chromium). I think the 
implementation should be

public native Element getCommonAncestor(JSRange range)
/*-{
    return range.commonAncestorContainer;
}-*/;

instead of

public native Element getCommonAncestor(JSRange range)
/*-{
    return range.commonAncestorContainer();
}-*/;

Original issue reported on code.google.com by flofr...@googlemail.com on 27 Jun 2011 at 12:37

GoogleCodeExporter commented 8 years ago
My favorite kind of issue report - one with a fix!

Thanks

Original comment by koz...@gmail.com on 22 Aug 2011 at 1:29