mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-07 21:54:29 +00:00
24 lines
816 B
HTML
24 lines
816 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Testcase #3 for bug 602331</title>
|
||
|
<script type="text/javascript" charset="utf-8">
|
||
|
function selectAllOfNewNodes() {
|
||
|
window.getSelection().removeAllRanges();
|
||
|
|
||
|
var newNode = document.createElement('span');
|
||
|
newNode.innerHTML = "Kitty";
|
||
|
document.getElementById('new_nodes').appendChild(newNode);
|
||
|
var range = document.createRange();
|
||
|
range.selectNode(document.getElementById('new_nodes'));
|
||
|
window.getSelection().addRange(range);
|
||
|
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="selectAllOfNewNodes()">
|
||
|
* <span id="new_nodes"><span>Hello</span> </span> *
|
||
|
</body>
|
||
|
</html>
|