[wp-trac] [WordPress Trac] #61229: Twenty Seventeen: "undefined is not an object" in JS detection

WordPress Trac noreply at wordpress.org
Thu May 16 09:38:10 UTC 2024


#61229: Twenty Seventeen: "undefined is not an object" in JS detection
---------------------------+-----------------------------
 Reporter:  domainsupport  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:  6.5.3
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Hello,

 We have noticed that when using Twenty Seventeen in Safari the following
 error is displayed in the console ...

 {{{
 TypeError: undefined is not an object (evaluating
 'r["@context"].toLowerCase')
 }}}

 ... relating to the JavaScript detection in the header ...

 {{{
     <script>
     (function(html) {
         html.className = html.className.replace(/\bno-js\b/, 'js')
     })(document.documentElement);
     </script>
 }}}

 This is only shown when you are signed in.

 You can actually see this on the Twenty Seventeen theme page here (when
 signed in to wordpress.org) ... https://en-
 gb.wordpress.org/themes/twentyseventeen/

 Just sign in, visit that page with Safari and inspect the console for
 errors!

 Oliver

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


More information about the wp-trac mailing list