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