(type, template)
| 10418 | |
| 10419 | |
| 10420 | function wrapTemplate(type, template) { |
| 10421 | type = lowercase(type || 'html'); |
| 10422 | switch (type) { |
| 10423 | case 'svg': |
| 10424 | case 'math': |
| 10425 | var wrapper = window.document.createElement('div'); |
| 10426 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 10427 | return wrapper.childNodes[0].childNodes; |
| 10428 | default: |
| 10429 | return template; |
| 10430 | } |
| 10431 | } |
| 10432 | |
| 10433 | |
| 10434 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected