| <p>This tests a crashing scenario where an element with a textbox role attribute which also contenteditable has its content changed.</p> |
| <div id="textbox" role="textbox" aria-multiline="true" contenteditable="true" tabindex="0"> |
| if (window.accessibilityController) { |
| var textbox = document.getElementById("textbox"); |
| var textboxAXElement = accessibilityController.focusedElement; |
| getSelection().setBaseAndExtent(textbox.firstChild, 0, textbox.firstChild, 0); |
| // This should not crash. |
| document.execCommand("InsertParagraph"); |