diff options
Diffstat (limited to 'testing/web-platform/tests/editing/crashtests/set-input-value-of-editing-host-after-changing-type.html')
-rw-r--r-- | testing/web-platform/tests/editing/crashtests/set-input-value-of-editing-host-after-changing-type.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/crashtests/set-input-value-of-editing-host-after-changing-type.html b/testing/web-platform/tests/editing/crashtests/set-input-value-of-editing-host-after-changing-type.html new file mode 100644 index 0000000000..34a1558896 --- /dev/null +++ b/testing/web-platform/tests/editing/crashtests/set-input-value-of-editing-host-after-changing-type.html @@ -0,0 +1,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> |