Skip to content

Commit ee47673

Browse files
masayuki-nakanomoz-wptsync-bot
authored andcommitted
Add the reported testcase into editing/crashtests of WPT
The bug itself has gone because the legacy white-space normalizer was removed in bug 1951038. Differential Revision: https://phabricator.services.mozilla.com/D257799 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1949897 gecko-commit: 903d4d0a2fa2dbe377e67f95d6c0607522d26131 gecko-reviewers: dom-core, edgar
1 parent ca76938 commit ee47673

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<script>
6+
"use strict";
7+
8+
document.addEventListener("DOMContentLoaded", () => {
9+
document.getElementById("meta").appendChild(
10+
document.getElementById("br").parentNode.removeChild(
11+
document.getElementById("br")
12+
)
13+
);
14+
document.getElementById("meta").appendChild(
15+
document.getElementById("ruby").cloneNode(true)
16+
);
17+
document.getElementById("meta").insertBefore(
18+
document.getElementById("br"), // should be null
19+
undefined
20+
);
21+
});
22+
</script>
23+
</head><body contenteditable="true">
24+
<meta id="meta">
25+
<br id="br">
26+
<ruby id="ruby" contenteditable="false">
27+
</ruby></body></html>

0 commit comments

Comments
 (0)