This is bizarre. When tabbing to create a new element it loses focus immediately. I don't know when this regression happened I haven't looked into the past. Stepping through the code the following happens: Start editing an attribute and push tab: 1. It properly adds a new attribute or starts editing the next attribute 2. It seems to set the focus on the new node 3. It properly sets the selection in the new node 4. The moment it returns from the blur event listener in WebInspector.startEditing() the focus on the new node disappears. I haven't seen anything like this. Any ideas?
This happens because commiting an attribute edit causes a delayed callback to happen (WebInspector.DOMAgent.prototype._didApplyDomChange) which then calls _updateTitle on the ElementsTreeElement that changed, which sets innerHTML, which fires a blur event, and that cancels the edit for the next attribute.
I have a fix.
Created attachment 42125 [details] Proposed Patch
Committed r50303: <http://trac.webkit.org/changeset/50303>