MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / wrapTemplate

Function wrapTemplate

OpenReservation/wwwroot/Scripts/angular.js:9555–9566  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

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") {

Callers 3

compileFunction · 0.85
applyDirectivesToNodeFunction · 0.85
compileTemplateUrlFunction · 0.85

Calls 1

lowercaseFunction · 0.85

Tested by

no test coverage detected