Files
sousa-gecko/testing/web-platform/tests/html/rendering/replaced-elements/the-select-element/select-setting-value-from-js-updates-visible-state.html
T
Avi Raj Kapila c694bbfdaa Bug 2053641 [wpt PR 61158] - script: Update shadow tree after an <option> element is picked to update visuals of <select> element, a=testonly
Automatic update from web-platform-tests
Added support for making an option selected for <select> using javascript

Signed-off-by: Avi Raj Kapila <kapilaar@rose-hulman.edu>

--
Moved over wpt test files for select-setting-value-from-js-updates-visible-state to correct location

Signed-off-by: Avi Raj Kapila <kapilaar@rose-hulman.edu>

--

wpt-commits: 16e89e1a7ff5a3839ce63ff30df139e31e87e66f, 005c518fd4889ec74e87848f2334b8fa0234df87
wpt-pr: 61158
2026-07-13 14:37:34 +00:00

19 lines
657 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Modifying the value of a select element from JS should update the shadow tree</title>
<link rel="author" title="Simon Wülker" href="simon.wuelker@arcor.de">
<link rel="help" href="https://github.com/servo/servo/issues/46212">
<link rel="match" href="select-setting-value-from-js-updates-visible-state-ref.html">
</head>
<body>
<select id="select">
<option value="10">10</option>
<option value="20">20</option>
</select>
<script>
document.getElementById("select").value = "20";
</script>
</body>
</html>