[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / html / details-replace-text.html
1 <html>
2 <head>
3 <style>
4 span { display: inline-block; font-family: monospace; }
5 </style>
6 <script>
7 function test()
8 {
9    var summary = document.getElementById("s2");
10    var text = summary.previousSibling;
11    text.data = " ";
12 }
13
14 function runTest()
15 {
16     if (window.layoutTestController)
17         document.getElementById("run").click();
18 }
19 </script>
20 <body onload="runTest()">
21 <details open>
22   <span id="s1">Details1</span>
23   <summary>Summary</summary>
24   Text<span id="s2">Details2</span>
25 </details>
26 <input id="run" type="button" value="click" onclick="test()">
27 </body>
28 </html>