1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <style type="text/css">
6 background-color: #66CCFF;
12 if (window.layoutTestController)
13 layoutTestController.waitUntilDone();
15 // Location changes need to happen outside the onload handler to generate history entries.
16 setTimeout(runTest, 0);
20 window.location.hash ='#target-01';
21 document.body.offsetTop;
22 window.history.back(); // This queues up a navigation, so we need to delay the call to notifyDone.
23 if (window.layoutTestController)
24 setTimeout(function() { layoutTestController.notifyDone() }, 0);
28 <body onload="test()">
31 <p>I should be highlighted first because of the anchor, and de-highlighted when there is no fragment.</p>