(type, template)
| 8089 | |
| 8090 | |
| 8091 | function wrapTemplate(type, template) { |
| 8092 | type = lowercase(type || 'html'); |
| 8093 | switch (type) { |
| 8094 | case 'svg': |
| 8095 | case 'math': |
| 8096 | var wrapper = document.createElement('div'); |
| 8097 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 8098 | return wrapper.childNodes[0].childNodes; |
| 8099 | default: |
| 8100 | return template; |
| 8101 | } |
| 8102 | } |
| 8103 | |
| 8104 | |
| 8105 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected