[wp-trac] [WordPress Trac] #47069: The admin bar on the front end has reduced functionality and bugs when jQuery not being used

WordPress Trac noreply at wordpress.org
Tue Dec 10 18:15:53 UTC 2019


#47069: The admin bar on the front end has reduced functionality and bugs when
jQuery not being used
-------------------------------------+-------------------------------------
 Reporter:  afercia                  |       Owner:  audrasjb
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  5.3.1
Component:  Toolbar                  |     Version:  5.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-screenshots early    |     Focuses:  accessibility,
  has-patch 2nd-opinion              |  javascript
-------------------------------------+-------------------------------------
Changes (by azaozz):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 There seem to be some errors in the "jQuery free" `admin-bar.js`. Caused
 by the way jQuery silences errors when a particular node doesn't exist.
 For example: `$( '#some-element' ).on( 'click', ... )` will not throw
 error when a node with that ID doesn't exist but the equivalent
 `document.getElementById( 'some-element' ).addEventListener()` will.

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


More information about the wp-trac mailing list