[wp-trac] [WordPress Trac] #29974: Focus handle at wrong place when you click reply

WordPress Trac noreply at wordpress.org
Fri Sep 25 21:28:53 UTC 2015


#29974: Focus handle at wrong place when you click reply
-----------------------------+----------------------------------------
 Reporter:  nhuja            |       Owner:  jorbin
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:  4.4
Component:  Comments         |     Version:  2.7
 Severity:  normal           |  Resolution:
 Keywords:  has-patch early  |     Focuses:  accessibility, javascript
-----------------------------+----------------------------------------
Changes (by helen):

 * keywords:  has-patch dev-feedback early has-screenshots needs-screenshots
     => has-patch early


Comment:

 Replying to [comment:40 mindctrl]:
 > This will break any CSS that targets elements based on position, for
 example `:first-of-type`. The same goes for jQuery's `:first-of-type`
 selector.

 I'm sympathetic to this, but why would that be done blindly? That's a very
 fragile thing to be doing when it's not your mark up. If we're not
 providing specific enough mark up for styling, we should take a look at
 that for sure.

 > Why can't the order remain the same and just give the name field focus?

 It's different when you're logged in and when you're not. We could make it
 different for each, but there's a lot to be said for consistency and
 putting what's typically the most important entry field first.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29974#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list