mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
85611a7b6d
--HG-- extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
30 lines
858 B
HTML
30 lines
858 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Contenteditable Selection Test Case</title>
|
|
<script>
|
|
function runTests() {
|
|
var editable = document.getElementById("editable");
|
|
var text = document.getElementById("text");
|
|
|
|
editable.focus();
|
|
|
|
setTimeout(function () {
|
|
editable.setAttribute("contenteditable", "false");
|
|
text.focus();
|
|
setTimeout(function () {
|
|
document.body.offsetHeight;
|
|
document.documentElement.removeAttribute('class');
|
|
}, 0);
|
|
}, 0);
|
|
}
|
|
document.addEventListener('MozReftestInvalidate', runTests);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="editable" contenteditable="true" tabindex="0" spellcheck="false">This is a contenteditable.</div>
|
|
<div id="text" tabindex="0">This is focusable text</div>
|
|
</body>
|
|
</html>
|