MCPcopy
hub / github.com/angular-ui/ui-grid / wrapTemplate

Function wrapTemplate

lib/test/angular/1.8.0/angular.js:11080–11091  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

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

Callers 3

compileFunction · 0.70
applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls 1

lowercaseFunction · 0.70

Tested by

no test coverage detected