| <script type="text/javascript"> |
| function addEvent(obj, evType, fn) { |
| if (obj.addEventListener){ |
| obj.addEventListener(evType, fn, false); |
| } else if (obj.attachEvent){ |
| var r = obj.attachEvent("on"+evType, fn); |
| function reloadSelect() { |
| var container = document.getElementById('container'); |
| container.innerHTML = '<select id="menu"> \ |
| <option value="abcd">abcd</option>\ |
| <option value="defg">efgh</option>\ |
| var menu = document.getElementById('menu'); |
| addEvent(menu, 'change', reloadSelect); |
| <p>Do the following and see if Chromium crashes.</p> |
| <li>Click the select</li> |
| <li>Press 'e' on your keyboard</li> |
| <li>Click on the document but not the select itself.</li> |