(node, text)
| 14173 | * @internal |
| 14174 | */ |
| 14175 | var setTextContent = function (node, text) { |
| 14176 | if (text) { |
| 14177 | var firstChild = node.firstChild; |
| 14178 | |
| 14179 | if (firstChild && firstChild === node.lastChild && firstChild.nodeType === TEXT_NODE) { |
| 14180 | firstChild.nodeValue = text; |
| 14181 | return; |
| 14182 | } |
| 14183 | } |
| 14184 | node.textContent = text; |
| 14185 | }; |
| 14186 | |
| 14187 | /** |
| 14188 | * CSS properties which accept numbers but are not in units of "px". |
no outgoing calls
no test coverage detected