5 <!-- To calculate width of composed glyph -->
6 <div style=
"font-size:500%">
7 <span id=
"reference">שְ</span>
10 <p>U+
05e9 U+
05b0 of following text should be selected.
</p>
11 <div style=
"font-size:500%">
12 <span id=
"target">סְשְ</span>
16 var width
= document
.getElementById("reference").offsetWidth
;
17 var target
= document
.getElementById("target");
19 if (window
.eventSender
) {
20 window
.eventSender
.mouseMoveTo(target
.offsetLeft
+ 5, target
.offsetTop
+ 5);
21 window
.eventSender
.mouseDown();
22 window
.eventSender
.mouseMoveTo(target
.offsetLeft
+ 5 + width
/ 2, target
.offsetTop
+ 5);
23 window
.eventSender
.mouseUp();