[wp-trac] [WordPress Trac] #32338: Wp-emoji-script causes a js error in ie, ie11

WordPress Trac noreply at wordpress.org
Mon May 11 07:53:06 UTC 2015


#32338: Wp-emoji-script causes a js error in ie, ie11
----------------------------+-----------------------------
 Reporter:  pavelthq        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  4.2.2
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 {{{
 // Source: wp-includes/js/wp-emoji.min.js
 !function(a,b){function c(){function c(){if(!i){if("undefined"==typeof
 a.twemoji){if(j>600)return;return
 a.clearTimeout(f),f=a.setTimeout(c,50),void j++}e=a.twemoji,i=!0,g&&new
 g(function(a){for(var
 b,c,e,f,g=a.length;g--;){if(b=a[g].addedNodes,c=a[g].removedNodes,e=b.length,1===e&&1===c.length&&3===b[0].nodeType&&"IMG"===c[0].nodeName&&b[0].data===c[0].alt)return;for(;e--;)f=b[e],3===f.nodeType&&(f=f.parentNode),!f||f.className&&-1!==f.className.indexOf
 ("wp-exclude-emoji")
 }}}

 In ie:
 f.className
 is an object that has two keys:
 animVal
 baseVal

 but it doesn't have a method: indexOf. In my console it causes an error
 and prevent next script execution.

 http://by-blickwinkel.de/test-page/

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


More information about the wp-trac mailing list