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

Function jqLiteParseHTML

lib/test/angular/1.8.0/angular.js:3271–3284  ·  view source on GitHub ↗
(html, context)

Source from the content-addressed store, hash-verified

3269}
3270
3271function jqLiteParseHTML(html, context) {
3272 context = context || window.document;
3273 var parsed;
3274
3275 if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
3276 return [context.createElement(parsed[1])];
3277 }
3278
3279 if ((parsed = jqLiteBuildFragment(html, context))) {
3280 return parsed.childNodes;
3281 }
3282
3283 return [];
3284}
3285
3286function jqLiteWrapNode(node, wrapper) {
3287 var parent = node.parentNode;

Callers 1

JQLiteFunction · 0.70

Calls 1

jqLiteBuildFragmentFunction · 0.70

Tested by

no test coverage detected