diff options
Diffstat (limited to 'testing/web-platform/tests/editing/crashtests/removeformat-from-DOMNodeRemoved.html')
-rw-r--r-- | testing/web-platform/tests/editing/crashtests/removeformat-from-DOMNodeRemoved.html | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/web-platform/tests/editing/crashtests/removeformat-from-DOMNodeRemoved.html b/testing/web-platform/tests/editing/crashtests/removeformat-from-DOMNodeRemoved.html new file mode 100644 index 0000000000..3f78f99436 --- /dev/null +++ b/testing/web-platform/tests/editing/crashtests/removeformat-from-DOMNodeRemoved.html @@ -0,0 +1,29 @@ +<!doctype html> +<html> +<head> +<meta charset="utf-8"> +<script> +document.addEventListener("DOMContentLoaded", () => { + window.find("a"); + document.addEventListener("DOMNodeRemoved", () => { + try { + document.getElementById("target").normalize(); + document.execCommand("removeFormat"); + } catch (e) { + } + }); + document.adoptNode(document.querySelector("datalist")); +}); +</script> +</head> +<body> +<kbd> +<datalist> +</kbd> +<figcaption contenteditable> +<font id="target"> +a +</font> +</figcaption> +</body> +</html> |