summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/set-input-value-of-editing-host-after-changing-type.html
blob: 34a15588965b1f1a975d7040f2d9a414c4d59da9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>
document.addEventListener("DOMContentLoaded", () => {
  const input = document.querySelector("input");
  input.focus();
  input.type = "text";
  input.value = "new value";
}, {once: true});
</script>
</head>
<body><input type="button" contenteditable></body>
</html>