GWT: Failed to execute 'insertBefore' in 'Node': 2 arguments required, but only 1 gift

I have a GWT project, so my javascript codes are generated by the GWT compiler. After the last chrome update, Javascript codes started throwing an exception like "Failed to execute" insertBefore "on" Node ": 2 arguments required, but only 1 gift". Since the javascript codes have some line like:

b.element.dom.insertBefore(e)

      

The problem goes away if I change the code above:

b.element.dom.insertBefore(e, null)

      

Do GWT have to publish a new update to resolve this issue? Or is it possible to change or override the GWT compiler to resolve the generated buggy code?

Thanks everyone.

+3


source to share





All Articles