GWT: Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only 1 present

4.3k Views Asked by At

I have a GWT project so my javascript codes are generated by GWT Compiler. After last chrome update, Javascript codes started to throw exception as "Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only 1 present." Because javascript codes have some line like:

b.element.dom.insertBefore(e)

The problem disappears if I change above code as:

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

Do GWT have to publish a new update to resolve this problem? Or Is it possible to edit or override GWT compiler to resolve generated buggy code?

Thanks all.

0

There are 0 best solutions below