diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-marker-slot-ref.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-marker-slot-ref.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-marker-slot-ref.html b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-marker-slot-ref.html new file mode 100644 index 0000000000..e910df4c5a --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-marker-slot-ref.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<script src="support/fake-selectlist.js"></script> +<body> +<script> + const selectlist = createFakeSelectlist('hello world'); + document.body.appendChild(selectlist); + + const oldMarker = selectlist.querySelector('.fake-selectlist-internal-selectlist-button-icon'); + const newMarker = document.createElement('div'); + newMarker.textContent = 'marker'; + + replaceChildElement(newMarker, oldMarker); +</script> |