[wp-trac] [WordPress Trac] #40925: Review the usage of the change event on select elements

WordPress Trac noreply at wordpress.org
Mon Apr 16 15:08:29 UTC 2018


#40925: Review the usage of the change event on select elements
-----------------------------+--------------------------------
 Reporter:  afercia          |       Owner:  (none)
     Type:  task (blessed)   |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Administration   |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:  ui, accessibility
-----------------------------+--------------------------------

Comment (by afercia):

 Just wanted to quote the related specification, for clarity:

 https://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-
 eventgroupings-keyevents
 > change
 > The change event occurs --> **when a control loses the input focus and
 its value has been modified since gaining focus** <--. This event is valid
 for INPUT, SELECT, and TEXTAREA. element.

 As said, historically many browsers have implemented it in an non-
 conforming way.

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


More information about the wp-trac mailing list