Ticket #11828 (closed bug: invalid)
Race condition in Chrome 19 in element.text() [more specifically element.empty()] when focus leaves body
|Reported by:||aar.now@…||Owned by:||aar.now@…|
Step to reproduce:
- Use Chrome 19.0.1084.52 m
- Run given small jsFiddle snippet;
- Go to jsFiddle result pane, and fill something into input element;
- Click somewere NOT ON document body (e.g. address bar, developer tools console, etc);
Expected result: input element replaced by text typed in, and NO EXCEPTIONS;
Observerd result: input element replaced by text typed in, and exception thrown: "NOT_FOUND_ERR: DOM Exception 8"
IE and Firefox are not affected.
Reason: element emptying algorithm is invoked somewhere in middle of NEXT opertions with the element yielding inconsistent state of 'elem' object at line 5911. elem.firstChild is already set to new content (if any was produced from NEXT opertions), while physically DOM element is empty.