Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 | |
| 3 <body> | |
| 4 <p> | |
| 5 A page with a selection containing an iframe. The browser should be | |
| 6 able to print it. | |
| 7 </p> | |
| 8 | |
| 9 <div id="selection-start"></div> | |
| 10 An iframe here: <iframe src="/simple.html"></iframe> | |
| 11 <div id="selection-end"></div> | |
| 12 | |
| 13 <script> | |
| 14 var range = document.createRange(); | |
| 15 range.setStart(document.getElementById("selection-start"), 0); | |
| 16 range.setEnd(document.getElementById("selection-end"), 0) | |
| 17 window.getSelection().addRange(range); | |
|
Lei Zhang
2017/06/21 07:36:32
Neat. Did not know JS + DOM operations supported t
arthursonzogni
2017/06/21 14:01:20
Yes I was surprised too. I did not know either bef
| |
| 18 </script> | |
| 19 </body> | |
| 20 | |
| 21 </html> | |
| OLD | NEW |