repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
Source
/
web
/
tests
/
data
/
select_range_basic.html
blob
a12fa02de9f1cdb78c919f544c9ed9b9408c8241
1
<!DOCTYPE
html
>
2
<html
id='root'
>
3
<body>
4
Some extra text.
5
<span
id='target'
>
Some test text for testing.
</span>
6
Some extra text.
7
<script>
8
function
select
() {
9
var
range
=
document
.
createRange
();
10
range
.
selectNode
(
document
.
getElementById
(
'target'
));
11
window
.
getSelection
().
addRange
(
range
);
12
}
13
window
.
onload
=
select
;
14
</script>
15
</body>
16
</html>
17