[Webkit-unassigned] [Bug 9248] Quirksmode: document.documentElement.scrollTop is always
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 21 00:22:58 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=9248
johnnyding <johnnyding.webkit at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |johnnyding.webkit at gmail.com
--- Comment #12 from johnnyding <johnnyding.webkit at gmail.com> 2009-10-21 00:22:57 PDT ---
Now IE6/7/8 and Firefox get scrollTop from document.documentElement.scrollTop
under standards mode and from document.body.scrollTop under quirks mode.
But all WebKit based browsers (like Safari and Chrome), under both standards
and quirks mode, all only get scrollTop from document.body.scrollTop, and
document.documentElement.scrollTop is always 0.
Since there is no standard/universal way to get scrollTop,
How about to get scrollTop by : document.documentElement.scrollTop >=
document.body.scrollTop ? document.documentElement.scrollTop :
document.body.scrollTop.
scrollLeft is similar as scrollTop.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list