(type, template)
| 11013 | |
| 11014 | |
| 11015 | function wrapTemplate(type, template) { |
| 11016 | type = lowercase(type || 'html'); |
| 11017 | switch (type) { |
| 11018 | case 'svg': |
| 11019 | case 'math': |
| 11020 | var wrapper = window.document.createElement('div'); |
| 11021 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 11022 | return wrapper.childNodes[0].childNodes; |
| 11023 | default: |
| 11024 | return template; |
| 11025 | } |
| 11026 | } |
| 11027 | |
| 11028 | |
| 11029 | function getTrustedAttrContext(nodeName, attrNormalizedName) { |
no test coverage detected