OLD | NEW |
1 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=13287">bug 13287</a
>: | 1 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=13287">bug 13287</a
>: |
2 Cannot change SELECT to a dynamically created option.</p> | 2 Cannot change SELECT to a dynamically created option.</p> |
3 <p>Test that DOM is updated before DOMNodeInserted is dispatched.</p> | 3 <p>Test that DOM is updated before DOMNodeInserted is dispatched.</p> |
4 <form> | 4 <form> |
5 <select ><option selected>1</option><option >2</option></select> | 5 <select ><option selected>1</option><option >2</option></select> |
6 <select multiple><option selected>1</option><option >2</option></select> | 6 <select multiple><option selected>1</option><option >2</option></select> |
7 <select size=5><option selected>1</option><option selected>2</option></select> | 7 <select size=5><option selected>1</option><option selected>2</option></select> |
8 </form> | 8 </form> |
9 <div id=res></div> | 9 <div id=res></div> |
10 <script> | 10 <script> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 theSelect = document.forms[0].elements[2]; | 63 theSelect = document.forms[0].elements[2]; |
64 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true); | 64 theSelect.addEventListener("DOMNodeInserted", nodeInserted, true); |
65 theSelect.insertBefore(new Option("3", "3", false, true), theSelect.firs
tChild); | 65 theSelect.insertBefore(new Option("3", "3", false, true), theSelect.firs
tChild); |
66 testResults([false, false], theSelect); | 66 testResults([false, false], theSelect); |
67 | 67 |
68 } catch (ex) { | 68 } catch (ex) { |
69 alert(ex); | 69 alert(ex); |
70 } | 70 } |
71 </script> | 71 </script> |
OLD | NEW |