(type, template)
| 10489 | |
| 10490 | |
| 10491 | function wrapTemplate(type, template) { |
| 10492 | type = lowercase(type || 'html'); |
| 10493 | switch (type) { |
| 10494 | case 'svg': |
| 10495 | case 'math': |
| 10496 | var wrapper = window.document.createElement('div'); |
| 10497 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 10498 | return wrapper.childNodes[0].childNodes; |
| 10499 | default: |
| 10500 | return template; |
| 10501 | } |
| 10502 | } |
| 10503 | |
| 10504 | |
| 10505 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected