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

Function jqLiteParseHTML

test/angular/1.6/angular.js:3201–3214  ·  view source on GitHub ↗
(html, context)

Source from the content-addressed store, hash-verified

3199}
3200
3201function jqLiteParseHTML(html, context) {
3202 context = context || window.document;
3203 var parsed;
3204
3205 if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
3206 return [context.createElement(parsed[1])];
3207 }
3208
3209 if ((parsed = jqLiteBuildFragment(html, context))) {
3210 return parsed.childNodes;
3211 }
3212
3213 return [];
3214}
3215
3216function jqLiteWrapNode(node, wrapper) {
3217 var parent = node.parentNode;

Callers 1

JQLiteFunction · 0.70

Calls 1

jqLiteBuildFragmentFunction · 0.70

Tested by

no test coverage detected