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

Function wrapTemplate

lib/test/angular/1.6.7/angular.js:10420–10431  ·  view source on GitHub ↗
(type, template)

Source from the content-addressed store, hash-verified

10418
10419
10420 function wrapTemplate(type, template) {
10421 type = lowercase(type || 'html');
10422 switch (type) {
10423 case 'svg':
10424 case 'math':
10425 var wrapper = window.document.createElement('div');
10426 wrapper.innerHTML = '<' + type + '>' + template + '</' + type + '>';
10427 return wrapper.childNodes[0].childNodes;
10428 default:
10429 return template;
10430 }
10431 }
10432
10433
10434 function getTrustedContext(node, attrNormalizedName) {

Callers 3

compileFunction · 0.70
applyDirectivesToNodeFunction · 0.70
compileTemplateUrlFunction · 0.70

Calls 1

lowercaseFunction · 0.70

Tested by

no test coverage detected