2 <html reftest-print-range=
"selection">
5 <link href=
"print.css" rel=
"stylesheet">
7 function selectNodeById(id
) {
8 var node
= document
.getElementById(id
);
9 var rng
= document
.createRange();
11 window
.getSelection().addRange(rng
);
15 <body onload=
"selectNodeById('selection')">
16 <p>This text should not be there
</p>
17 <p id=
"selection">This text should appear on page
1</p>
18 <iframe src=
"data:text/html,"></iframe>