Unrelated to the commit, but since we're touching this: why we compare `innerHTML`s instead of elements directly? I think this is wrong. The expected element to have focus is an `<input>` which has an empty `innerHTML` so in fact this assertion might pass through accidentally when some other `<input>` has focus.