|
1 <!DOCTYPE HTML> |
|
2 <html class="reftest-wait"><head> |
|
3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
4 <title>Testcase for bug 503399</title> |
|
5 <style type="text/css"> |
|
6 |
|
7 html,body { |
|
8 color:black; background-color:white; font-size:16px; |
|
9 font-family: monospace; |
|
10 } |
|
11 p { |
|
12 max-width:180px; |
|
13 height: 1em; |
|
14 overflow:hidden; |
|
15 } |
|
16 </style> |
|
17 <script> |
|
18 var done = false; |
|
19 function runTest(p) { |
|
20 if (done) |
|
21 return; |
|
22 try { |
|
23 var r = window.getSelection().getRangeAt(0); |
|
24 r.setStart(p.childNodes[1],1); |
|
25 r.setEnd(p.childNodes[1],1); |
|
26 } catch (e) {} |
|
27 document.documentElement.removeAttribute('class'); |
|
28 done = true; |
|
29 } |
|
30 </script> |
|
31 </head> |
|
32 <body onload="var p = document.getElementsByTagName('p')[0]; p.focus(); setTimeout(function(){runTest(p)},1000)"> |
|
33 |
|
34 <p onfocus="runTest(this)" contentEditable="true" |
|
35 style="text-align:justify"><span> </span> </p> |
|
36 |
|
37 </body> |
|
38 </html> |