Friday, January 31, 2014

Re: body.scrollLeft and body.scrollTop deprecated in strict mode



On Friday, January 31, 2014 11:18:34 PM UTC+1, Thomas Broyer wrote:
GWT should use documentElement, unless you're in quirks mode (in which case it uses the body).

…that said, I see the same warnings for Google Groups, and it correctly runs in standards mode.

Hah, must be the getScrollLeft(Document) and getScrollTop(Document) overrides in DOMImplStandardBase: https://gwt.googlesource.com/gwt/+/2.6.0/user/src/com/google/gwt/dom/client/DOMImplStandardBase.java
Maybe we should move them down to DOMImplWebkit with an additional check for Safari vs. Chrome (assuming some versions of Safari still need it)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment