3 function isWhitespace(char) {
4 return char === '\n' || char === ' ' || char === '\t';
8 attachElContent: function fastAttachElContent(html) {
10 if (typeof html === 'string') {
17 var len = html.length;
18 for (var i = 0; i < len; i++) {
20 /* Ignore empty text chunks */
22 chunk.nodeType === 3 &&
23 chunk.textContent.length === 1 &&
24 isWhitespace(chunk.textContent[0])
27 el.appendChild(chunk);
32 if (html.nodeType === 1) {