(type, template)
| 9961 | |
| 9962 | |
| 9963 | function wrapTemplate(type, template) { |
| 9964 | type = lowercase(type || 'html'); |
| 9965 | switch (type) { |
| 9966 | case 'svg': |
| 9967 | case 'math': |
| 9968 | var wrapper = window.document.createElement('div'); |
| 9969 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 9970 | return wrapper.childNodes[0].childNodes; |
| 9971 | default: |
| 9972 | return template; |
| 9973 | } |
| 9974 | } |
| 9975 | |
| 9976 | |
| 9977 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected