(type, template)
| 9553 | } |
| 9554 | |
| 9555 | function wrapTemplate(type, template) { |
| 9556 | type = lowercase(type || 'html'); |
| 9557 | switch (type) { |
| 9558 | case 'svg': |
| 9559 | case 'math': |
| 9560 | var wrapper = document.createElement('div'); |
| 9561 | wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>'; |
| 9562 | return wrapper.childNodes[0].childNodes; |
| 9563 | default: |
| 9564 | return template; |
| 9565 | } |
| 9566 | } |
| 9567 | |
| 9568 | function getTrustedContext(node, attrNormalizedName) { |
| 9569 | if (attrNormalizedName == "srcdoc") { |
no test coverage detected