OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <p> | 4 <p> |
5 <span> | 5 <span> |
6 <span id="start"></span> | 6 <span id="start"></span> |
7 </span> | 7 </span> |
8 <span> | 8 <span> |
9 <span id="end"></span> | 9 <span id="end"></span> |
10 </span> | 10 </span> |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 document.addEventListener("DOMSubtreeModified", runTest, false); | 22 document.addEventListener("DOMSubtreeModified", runTest, false); |
23 | 23 |
24 var r = document.createRange(); | 24 var r = document.createRange(); |
25 r.setStartBefore(document.getElementById('start')); | 25 r.setStartBefore(document.getElementById('start')); |
26 r.setEndAfter(document.getElementById('end')); | 26 r.setEndAfter(document.getElementById('end')); |
27 r.extractContents(); | 27 r.extractContents(); |
28 </script> | 28 </script> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |