Index: LayoutTests/fast/dom/anchor-without-content.html |
diff --git a/LayoutTests/fast/dom/anchor-without-content.html b/LayoutTests/fast/dom/anchor-without-content.html |
index ca91a5524c3cea7d554285bd89cf8453f8b86315..deabbdce3afe8c0835bbbe8f3c7632900cc016d9 100644 |
--- a/LayoutTests/fast/dom/anchor-without-content.html |
+++ b/LayoutTests/fast/dom/anchor-without-content.html |
@@ -25,16 +25,16 @@ |
<span class="spacer"></span> |
<script> |
- var scrollTopBeforeClick = document.body.scrollTop; |
+ var scrollTopBeforeClick = document.documentElement.scrollTop; |
document.getElementById('goto-1').click(); |
- if (document.body.scrollTop > scrollTopBeforeClick) |
+ if (document.documentElement.scrollTop > scrollTopBeforeClick) |
testPassed('Clicking link 1 scrolled to block 1.'); |
else |
testFailed('Clicking link 1 didn\'t scroll as expected.'); |
- var scrollTopBeforeClick = document.body.scrollTop; |
+ var scrollTopBeforeClick = document.documentElement.scrollTop; |
document.getElementById('goto-2').click(); |
- if (document.body.scrollTop > scrollTopBeforeClick) |
+ if (document.documentElement.scrollTop > scrollTopBeforeClick) |
testPassed('Clicking link 2 scrolled to block 2.'); |
else |
testFailed('Clicking link 2 didn\'t scroll as expected.'); |