Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /dom/nodes/moveBefore/moveBefore-option-recalc-style.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>moveBefore() of an option element between two selects</title>
<link
rel="help"
/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<select>
<option id="mv">OPTION</option>
</select>
<select id="move_to"></select>
<script>
test(() => {
document.body.offsetTop;
move_to.moveBefore(mv, null);
assert_equals(mv.parentElement, move_to);
});
</script>