| <script src="../../resources/js-test-pre.js"></script> |
| <option>PASS</option>FAIL |
| description('Check that a select control does not render children that are not <option> or <optgroup>.'); |
| var select = document.querySelector('select'); |
| var div = select.appendChild(document.createElement('div')); |
| div.style.background = 'red'; |
| // innerText uses the render tree, and the "FAIL" text (from either the initial |
| // HTML or the dynamially inserted <div>) should not be in the render tree, thus |
| shouldBeEqualToString('select.innerText', ''); |
| <script src="../../resources/js-test-post.js"></script> |