[whatwg] Two propositions for the autofocus attribute
timeless
timeless at gmail.com
Thu Apr 15 22:52:28 PDT 2010
fwiw, w/ the mobile browsers i work w/, random focus changes are
incredibly annoying.
we had a "manager" who insisted on a "feature" where the browser would
move focus to the urlbar in certain cases.
as a result users often have text they're typing spread across at
least two input areas.
needless to say, our users/engineers are not amused.
also note that dom insertion is somewhat random, so:
<form>
<input id=c1 autofocus>
</form>
<form>
<input id=c2 autofocus>
</form>
could either focus c1, or it could focus c2, depending on random-ish
things like packet size.
<form>
<input id=c1 autofocus>
</form>
<form>
<input id=c2 autofocus>
</form>
<form>
<input id=c1 autofocus>
</form>
<form>
<input id=c3 autofocus>
</form>
<form>
<input id=c4 autofocus>
</form>
<form>
<input id=c5 autofocus>
</form>
<form>
<input id=c6 autofocus>
</form>
<form>
<input id=c7 autofocus>
</form>
would not make me happy either.
More information about the whatwg
mailing list