Changeset 36817
- Timestamp:
- 03/03/2016 05:20:19 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/wp-emoji.js
r36816 r36817 16 16 twemoji, timer, 17 17 loaded = false, 18 count = 0; 18 count = 0, 19 ie11 = window.navigator.userAgent.indexOf( 'Trident/7.0' ) > 0; 19 20 20 21 /** … … 69 70 70 71 if ( node.nodeType === 3 ) { 72 if ( ! node.parentNode ) { 73 continue; 74 } 75 76 if ( ie11 ) { 77 /* 78 * IE 11's implementation of MutationObserver is buggy. 79 * It unnecessarily splits text nodes when it encounters a HTML 80 * template interpolation symbol ( "{{", for example ). So, we 81 * join the text nodes back together as a work-around. 82 */ 83 while( node.nextSibling && 3 === node.nextSibling.nodeType ) { 84 node.nodeValue = node.nodeValue + node.nextSibling.nodeValue; 85 node.parentNode.removedChild( node.nextSibling ); 86 } 87 } 88 71 89 node = node.parentNode; 72 90 }
Note: See TracChangeset
for help on using the changeset viewer.