2010-02-08 16:21:54 -08:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html class="reftest-wait"><head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
|
<title>Testcase for bug 503399</title>
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
html,body {
|
|
|
|
color:black; background-color:white; font-size:16px;
|
2010-03-08 02:11:02 -08:00
|
|
|
font-family: monospace;
|
2010-02-08 16:21:54 -08:00
|
|
|
}
|
|
|
|
p {
|
2010-03-08 02:11:02 -08:00
|
|
|
max-width:180px;
|
2010-02-08 16:21:54 -08:00
|
|
|
height: 1em;
|
|
|
|
overflow:hidden;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
2010-05-12 05:14:48 -07:00
|
|
|
var done = false;
|
2010-02-08 16:21:54 -08:00
|
|
|
function runTest(p) {
|
2010-05-12 05:14:48 -07:00
|
|
|
if (done)
|
|
|
|
return;
|
2010-02-08 16:21:54 -08:00
|
|
|
try {
|
|
|
|
var r = window.getSelection().getRangeAt(0);
|
|
|
|
r.setStart(p.childNodes[0],14);
|
|
|
|
r.setEnd(p.childNodes[0],14);
|
|
|
|
} catch (e) {}
|
|
|
|
document.documentElement.removeAttribute('class');
|
2010-05-12 05:14:48 -07:00
|
|
|
done = true;
|
2010-02-08 16:21:54 -08:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
2010-05-12 05:14:48 -07:00
|
|
|
<body onload="var p = document.getElementsByTagName('p')[0]; p.focus(); setTimeout(function(){runTest(p)},1000)">
|
2010-02-08 16:21:54 -08:00
|
|
|
|
|
|
|
<p onfocus="runTest(this)" contentEditable="true"
|
2010-03-08 02:11:02 -08:00
|
|
|
style="text-align:justify"> </p>
|
2010-02-08 16:21:54 -08:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|