editor/reftests/1443902-3.html
author Alastor Wu <alwu@mozilla.com>
Fri, 11 Jan 2019 18:45:31 +0000
changeset 453533 22ce92cbdf648501a5324bf525ee9e570dbb174c
parent 425550 4c31558d3481dbd0d0f842fafc73120eb04cbd91
permissions -rw-r--r--
Bug 1513733 - part3 : add test. r=baku,karlt Add test and mochitest-only function in document. Differential Revision: https://phabricator.services.mozilla.com/D14913

<!DOCTYPE html>
<html>
<head>
<script>
function init()
{
  document.getElementById("t1").focus();
  document.getElementById("t1").setSelectionRange(0, 1);
  document.getElementById("d1").setAttribute("contentEditable", "false");
}
</script>
</head>
<body onload="init()">
<div contenteditable=true id="d1">
<input type="text" id=t1 value="ABCD" readonly>
</div>
</body>
</html>