Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!-- | |
| 2 @MAC-ALLOW:AXRole* | |
| 3 @MAC-ALLOW:AXSubrole* | |
| 4 @WIN-ALLOW:xml-roles* | |
| 5 @WIN-ALLOW:caret_offset* | |
| 6 @WIN-ALLOW:n_selections* | |
| 7 @WIN-ALLOW:selection_start* | |
| 8 @WIN-ALLOW:selection_end* | |
| 9 --> | |
| 10 <!DOCTYPE html> | |
| 11 <html> | |
| 12 <body> | |
| 13 <div id="searchbox" role="searchbox">ARIA role searchbox.</div> | |
| 14 <script> | |
| 15 var selection = window.getSelection(); | |
| 16 var selectionRange = document.createRange(); | |
| 17 var searchbox = document.getElementById("searchbox"); | |
| 18 searchbox.focus(); | |
| 19 selectionRange.selectNodeContents(searchbox); | |
| 20 selection.removeAllRanges(); | |
| 21 selection.addRange(selectionRange); | |
|
David Tseng
2015/08/28 16:08:46
It would be great to do this natively (using acces
dmazzoni
2015/08/28 21:48:53
Maybe in a different test? That couldn't be done f
| |
| 22 </script> | |
| 23 </body> | |
| 24 </html> | |
| OLD | NEW |