1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/bug632215-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 + <body> 1.7 + <iframe src="data:text/html,<body spellcheck=false>xx</body>"></iframe> 1.8 + <script> 1.9 + onload = function() { 1.10 + var i = document.querySelector("iframe"); 1.11 + var d = i.contentDocument; 1.12 + var w = i.contentWindow; 1.13 + d.designMode = "on"; 1.14 + i.focus(); 1.15 + d.body.focus(); 1.16 + w.getSelection().collapse(d.body.firstChild, 2); 1.17 + }; 1.18 + </script> 1.19 + </body> 1.20 +</html>