Monday, August 12, 2019

Re: elemental2: Document.createEvent ?

final MyHTMLDocument doc = Js.cast(DomGlobal.document);  <-- this crashes
final MyHTMLDocument doc = Js.uncheckedCast(DomGlobal.document);  <-- this works

Because the native browser document isn't a MyHTMLDocument? You can only treat it like a MyHTMLDocument by doing a nasty unchecked cast so you can call that method you need.

-- J.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment