(type, template)
| 11078 | |
| 11079 | |
| 11080 | function wrapTemplate(type, template) { |
| 11081 | type = lowercase(type || 'html'); |
| 11082 | switch (type) { |
| 11083 | case 'svg': |
| 11084 | case 'math': |
| 11085 | var wrapper = window.document.createElement('div'); |
| 11086 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 11087 | return wrapper.childNodes[0].childNodes; |
| 11088 | default: |
| 11089 | return template; |
| 11090 | } |
| 11091 | } |
| 11092 | |
| 11093 | |
| 11094 | function getTrustedAttrContext(nodeName, attrNormalizedName) { |
no test coverage detected