Support autofocus attribute on input elements