This PR removes the inline javascript from the ISIS and Hathor templates which adds focus to the username field on the admin login screen and just uses autofocus=true instead
I believe you can just add the word autofocus to the input tags. No need for autofocus="true" according to w3schools. I had to add autofocus="true" in #7604 because it was being added to an XML file and not the input tag directly.
One thought about doing this HTML5 attribute is the fact that it is not supported in all browsers, specifically anything lower than IE10. Does that matter?
Our templates have a polyfill for backporting stuff. So as long as it's covered then no big deal. And if the browser ignores it completely and the page still works, I'd say no big deal either.
Fedik
- test_item
- 1 Aug 2015
- Tested successfully
I believe you can just add the word
autofocus
to the input tags. No need forautofocus="true"
according to w3schools. I had to addautofocus="true"
in #7604 because it was being added to an XML file and not the input tag directly.One thought about doing this HTML5 attribute is the fact that it is not supported in all browsers, specifically anything lower than IE10. Does that matter?