(type, template)
| 8905 | |
| 8906 | |
| 8907 | function wrapTemplate(type, template) { |
| 8908 | type = lowercase(type || 'html'); |
| 8909 | switch (type) { |
| 8910 | case 'svg': |
| 8911 | case 'math': |
| 8912 | var wrapper = document.createElement('div'); |
| 8913 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 8914 | return wrapper.childNodes[0].childNodes; |
| 8915 | default: |
| 8916 | return template; |
| 8917 | } |
| 8918 | } |
| 8919 | |
| 8920 | |
| 8921 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected