facebook/react — pull request #643 by spicyj (2013-12-08 00:02:10+00:00)
Title: Fix scrollLeft/scrollTop warning in latest Chrome

Chrome gives the warnings

```
body.scrollLeft is deprecated in strict mode. Please use 'documentElement.scrollLeft' if in strict mode and 'body.scrollLeft' only if in quirks mode.
body.scrollTop is deprecated in strict mode. Please use 'documentElement.scrollTop' if in strict mode and 'body.scrollTop' only if in quirks mode.
```

the first time getUnboundedScrollPosition is invoked. This fixes it. (All modern browsers support `pageYOffset`; IE 8 doesn't but works properly with `document.documentElement.scrollTop` except in quirks mode which React doesn't support.)

cc @yungsters (by the way, it looks like `getDocumentScrollElement` can be implemented by checking `document.documentElement.clientWidth > 0`. but do you need `getDocumentScrollElement` at all in FB code? it should return `document.body` only in quirks mode.)