зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
536 B
HTML
17 строки
536 B
HTML
<!doctype html>
|
|
<html class="reftest-wait">
|
|
<title>Test reference</title>
|
|
<script src="/tests/SimpleTest/EventUtils.js"></script>
|
|
<script src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<div contenteditable="true">
|
|
Can you edit <b>me</b>?
|
|
</div>
|
|
<script>
|
|
SimpleTest.waitForFocus(function() {
|
|
const editable = document.querySelector('div[contenteditable="true"]');
|
|
editable.focus();
|
|
synthesizeMouseAtCenter(editable.querySelector("b"), {});
|
|
setTimeout(() => document.documentElement.removeAttribute("class"), 0);
|
|
});
|
|
</script>
|