Skip to main content

Bug Tracker

Side navigation

#11828 closed bug (invalid)

Opened May 28, 2012 09:36PM UTC

Closed June 12, 2012 08:38AM UTC

Race condition in Chrome 19 in element.text() [more specifically element.empty()] when focus leaves body

Reported by: aar.now@gmail.com Owned by: aar.now@gmail.com
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

http://jsfiddle.net/8Pr5H/4/

Step to reproduce:

0. Use Chrome 19.0.1084.52 m

1. Run given small jsFiddle snippet;

2. Go to jsFiddle result pane, and fill something into input element;

3. 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.

//Anatoly

Attachments (0)
Change History (3)

Changed May 28, 2012 09:45PM UTC by dmethvin comment:1

owner: → aar.now@gmail.com
status: newpending

This sounds like a Chrome error that we cannot fix. Have you reported the problem to the Google Chrome team?

Changed May 28, 2012 10:01PM UTC by artazor comment:2

Hmm... seems that it is related to jQuery interacting with bubbling of focusout.

Because without bubbling it works just fine: http://jsfiddle.net/8Pr5H/5/

The same steps yield no error.

Changed June 12, 2012 08:38AM UTC by trac-o-bot comment:3

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!