(type, template)
| 8005 | |
| 8006 | |
| 8007 | function wrapTemplate(type, template) { |
| 8008 | type = lowercase(type || 'html'); |
| 8009 | switch (type) { |
| 8010 | case 'svg': |
| 8011 | case 'math': |
| 8012 | var wrapper = document.createElement('div'); |
| 8013 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 8014 | return wrapper.childNodes[0].childNodes; |
| 8015 | default: |
| 8016 | return template; |
| 8017 | } |
| 8018 | } |
| 8019 | |
| 8020 | |
| 8021 | function getTrustedContext(node, attrNormalizedName) { |
no test coverage detected