MCPcopy Index your code
hub / github.com/angular-ui/ui-router / jqLiteParseHTML

Function jqLiteParseHTML

test/angular/1.4/angular.js:2800–2813  ·  view source on GitHub ↗
(html, context)

Source from the content-addressed store, hash-verified

2798}
2799
2800function jqLiteParseHTML(html, context) {
2801 context = context || document;
2802 var parsed;
2803
2804 if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
2805 return [context.createElement(parsed[1])];
2806 }
2807
2808 if ((parsed = jqLiteBuildFragment(html, context))) {
2809 return parsed.childNodes;
2810 }
2811
2812 return [];
2813}
2814
2815function jqLiteWrapNode(node, wrapper) {
2816 var parent = node.parentNode;

Callers 1

JQLiteFunction · 0.70

Calls 1

jqLiteBuildFragmentFunction · 0.70

Tested by

no test coverage detected