(type, template)
| 8456 | |
| 8457 | |
| 8458 | function wrapTemplate(type, template) { |
| 8459 | type = lowercase(type || 'html'); |
| 8460 | switch (type) { |
| 8461 | case 'svg': |
| 8462 | case 'math': |
| 8463 | var wrapper = document.createElement('div'); |
| 8464 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 8465 | return wrapper.childNodes[0].childNodes; |
| 8466 | default: |
| 8467 | return template; |
| 8468 | } |
| 8469 | } |
| 8470 | |
| 8471 | |
| 8472 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected