[wp-trac] [WordPress Trac] #46474: function matches() does not exist in the Twenty Nineteen theme

WordPress Trac noreply at wordpress.org
Tue Mar 12 08:56:48 UTC 2019


#46474: function matches() does not exist in the Twenty Nineteen theme
---------------------------+-----------------------------
 Reporter:  janpaulkleijn  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Themes         |    Version:  5.1
 Severity:  normal         |   Keywords:  has-patch
  Focuses:                 |
---------------------------+-----------------------------
 In the themefiles (in the /js dir) there is a file called 'touch-keyboard-
 navigation.js'. This file uses the function matches() on lines 167 and
 172.

 It appears there is an issue with the use of the function matches() in my
 browser (Mozilla Firefox 65.0.2 64bit). I get the notice in the console
 that the function matches() does not exist.

 I solved this with the use of a polyfill that is published by Mozilla:
 https://developer.mozilla.org/en-US/docs/Web/API/Element/matches#Polyfill

 Steps to reproduce: Use the twentynineteen theme in the aforementioned
 Mozilla Firefox browser and click on the page (anywhere).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46474>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list