| | 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 | |