W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2010

[whatwg] Two propositions for the autofocus attribute

From: timeless <timeless@gmail.com>
Date: Fri, 16 Apr 2010 08:52:28 +0300
Message-ID: <h2sbb9848a71004152252k394cb680ocd4e69081b3ad4ef@mail.gmail.com>
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.
Received on Thursday, 15 April 2010 22:52:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:22 UTC