In Javascript, I can write:
var circles = document.all.tags("circle");
and in circles variable I will have a list of circle tags.
How can I do this in GWT?
I wrote:
public final native void getPoints() /*-{
this.points = $doc.all.tags("circle");
}-*/;
public final native String toJSON() /*-{
return $wnd.JSON.stringify(this);
}-*/;
but when I call toJSON method, I have exception.
You have getElementByTagName() in Document class.