(type, template)
| 9306 | |
| 9307 | |
| 9308 | function wrapTemplate(type, template) { |
| 9309 | type = lowercase(type || 'html'); |
| 9310 | switch (type) { |
| 9311 | case 'svg': |
| 9312 | case 'math': |
| 9313 | var wrapper = document.createElement('div'); |
| 9314 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 9315 | return wrapper.childNodes[0].childNodes; |
| 9316 | default: |
| 9317 | return template; |
| 9318 | } |
| 9319 | } |
| 9320 | |
| 9321 | |
| 9322 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected