Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE HTML> | |
| 2 <script src="../resources/testharness.js"></script> | |
| 3 <script src="../resources/testharnessreport.js"></script> | |
| 4 <h1>Hidden select box shouldn't cause a crash</h1> | |
| 5 <select id="listbox" hidden> | |
| 6 <option>one</option> | |
| 7 <option>two</option> | |
| 8 </select> | |
| 9 <script> | |
| 10 let listbox = document.querySelector("#listbox"); | |
| 11 let option = document.createElement("option"); | |
| 12 option.id = "option"; | |
| 13 listbox.appendChild(option); | |
| 14 | |
| 15 test(function(t) { | |
| 16 accessibilityController.accessibleElementById("option"); | |
| 17 }, "Shouldn't crash when adding an option to a hidden <select>"); | |
| 18 </script> | |
| OLD | NEW |