diff options
Diffstat (limited to 'testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-selected-value-slot-ref.html')
-rw-r--r-- | testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-selected-value-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-selected-value-slot-ref.html b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-selected-value-slot-ref.html new file mode 100644 index 0000000000..ecb8c886a1 --- /dev/null +++ b/testing/web-platform/tests/html/semantics/forms/the-selectlist-element/selectlist-selected-value-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 oldSelectedValue = selectlist.querySelector('.fake-selectlist-selected-value'); + const newSelectedValue = document.createElement('div'); + newSelectedValue.textContent = 'new selected value'; + + replaceChildElement(newSelectedValue, oldSelectedValue); +</script> |