(type, template)
| 8595 | |
| 8596 | |
| 8597 | function wrapTemplate(type, template) { |
| 8598 | type = lowercase(type || 'html'); |
| 8599 | switch (type) { |
| 8600 | case 'svg': |
| 8601 | case 'math': |
| 8602 | var wrapper = document.createElement('div'); |
| 8603 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 8604 | return wrapper.childNodes[0].childNodes; |
| 8605 | default: |
| 8606 | return template; |
| 8607 | } |
| 8608 | } |
| 8609 | |
| 8610 | |
| 8611 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected