OLD | NEW |
1 | 1 |
2 <style> | 2 <style> |
3 div:first-child { | 3 div:first-child { |
4 -webkit-column-count:65540; | 4 -webkit-column-count:65540; |
5 } | 5 } |
6 div:first-letter { | 6 div:first-letter { |
7 color: green; | 7 color: green; |
8 } | 8 } |
9 </style> | 9 </style> |
10 <script> | 10 <script> |
| 11 if (window.testRunner) |
| 12 testRunner.dumpAsText(); |
11 document.addEventListener("readystatechange", function() { | 13 document.addEventListener("readystatechange", function() { |
12 document.execCommand("SelectAll") | 14 document.execCommand("SelectAll") |
13 window.getSelection().deleteFromDocument(); | 15 window.getSelection().deleteFromDocument(); |
14 }); | 16 }); |
15 | 17 |
16 document.addEventListener("DOMCharacterDataModified", modifiedListener); | 18 document.addEventListener("DOMCharacterDataModified", modifiedListener); |
17 function modifiedListener(evt) { | 19 function modifiedListener(evt) { |
18 document.removeEventListener("DOMCharacterDataModified", modifiedListener); | 20 document.removeEventListener("DOMCharacterDataModified", modifiedListener); |
19 window.getSelection().getRangeAt(0).insertNode(document.getElementById('dfn'))
; | 21 window.getSelection().getRangeAt(0).insertNode(document.getElementById('dfn'))
; |
20 } | 22 } |
21 </script> | 23 </script> |
22 <body> | 24 <body> |
23 <!-- Passes if no CRASH in debug. --> | 25 <!-- Passes if no CRASH in debug. --> |
24 | 26 |
25 <dfn id='dfn'></dfn> | 27 <dfn id='dfn'></dfn> |
26 | 28 |
27 <span> | 29 <span> |
28 <div id='node'> | 30 <div id='node'> |
29 c B | 31 c B |
30 </div> | 32 </div> |
31 </span> | 33 </span> |
32 </body> | 34 </body> |
OLD | NEW |