Fixed bug in HTML5-autofocus shim