I'm assuming you are trying define a custom element. I don't believe such elements are constructable by 'new' operator in many browsers (yet).
On Fri, Nov 25, 2016 at 6:08 PM, Marcio Alves <[email protected]> wrote: > Hi, > > It looks like there are some classes from elemental2 that can't be > extended. For instance HTMLElement. > > When I try to extend the class and create the new class the navigator > throw an error: > > " Failed to construct 'HTMLElement': Please use the 'new' operator, > this DOM object constructor cannot be called as a function " > > Any ideas on how to solve this error? > > Thanks! > > Em quarta-feira, 29 de junho de 2016 21:23:51 UTC-3, Julien Dramaix > escreveu: >> >> A new experimental version of Elemental2 using the new JsInterop >> specification has been pushed on Sonatype today. >> >> You can try it by downloading the jar file >> <https://oss.sonatype.org/service/local/repositories/google-releases/content/com/google/gwt/elemental2-experimental/16-06-30/elemental2-experimental-16-06-30.jar> >> or adding this following maven dependency: >> >> <dependency> >> >> <groupId>com.google.gwt</groupId> >> >> <artifactId>elemental2-experimental</artifactId> >> >> <version>16-06-30</version> >> >> </dependency> >> >> Then, inherits the elemental2 module: >> >> <inherits name="elemental2" /> >> >> This experimental version works only with the last 2.8-snapshot release >> of GWT. >> >> The goal of this release is to get feedback so don’t hesitate to report >> any bugs, issues, concerns you have on this mailing list. >> >> >> Important note: This is an experimental release and without doubt the >> future updates until the final release are going to break code! >> >> - Julien >> >> -- > You received this message because you are subscribed to the Google Groups > "GWT Contributors" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/google-web-toolkit-contributors/7100c19d-2372- > 4461-8efc-3ccf2c513116%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit-contributors/7100c19d-2372-4461-8efc-3ccf2c513116%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA1qQ_6xqr%2Bxr6A8p1_TDTZHrUSm-KtNUscaszn%2Bt_Soeg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
