select-multiple-re-add-option-via-document-fragment.html (536B)
1 <!doctype html> 2 <title>Test: Move option from select[multiple] into DocumentFragment and back</title> 3 <link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#the-select-element-2"> 4 <link rel="match" href="select-multiple-re-add-option-via-document-fragment-ref.html"> 5 <p>You should see the word PASS below.</p> 6 <select multiple id="sel"><option id="opt">PASS</option></select> 7 <script> 8 document.body.offsetTop; 9 let rm = opt; 10 document.createDocumentFragment().appendChild(rm); 11 sel.appendChild(rm); 12 </script>