blob: 94d7cbc86e5476d05eaffcf3f839d2ce74d79ba4 [file] [log] [blame]
morrita@google.com546a2e52011-05-26 02:31:38 +00001<html>
2<head>
3<style>
4span { display: inline-block; font-family: monospace; }
5</style>
6<script>
7function test()
8{
9 var summary = document.getElementById("s2");
10 var text = summary.previousSibling;
11 text.data = " ";
12}
13
14function runTest()
15{
rniwa@webkit.org06ad32a2012-06-22 08:52:23 +000016 if (window.testRunner)
morrita@google.com546a2e52011-05-26 02:31:38 +000017 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>