add html5/xhtml compatible autofocus to fix issue #464