THe selection should be the name or value that was doubled clicked to start editing. This regressed when we switched to focus/blur events, since a focus on a content editable region changes the selection.
Created attachment 22644 [details] Proposed patch
Comment on attachment 22644 [details] Proposed patch r=me
Landed in r35563.