MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / jqLiteParseHTML

Function jqLiteParseHTML

code/songhop/www/lib/angular/angular.js:2457–2470  ·  view source on GitHub ↗
(html, context)

Source from the content-addressed store, hash-verified

2455}
2456
2457function jqLiteParseHTML(html, context) {
2458 context = context || document;
2459 var parsed;
2460
2461 if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
2462 return [context.createElement(parsed[1])];
2463 }
2464
2465 if ((parsed = jqLiteBuildFragment(html, context))) {
2466 return parsed.childNodes;
2467 }
2468
2469 return [];
2470}
2471
2472/////////////////////////////////////////////
2473function JQLite(element) {

Callers 1

JQLiteFunction · 0.70

Calls 2

execMethod · 0.80
jqLiteBuildFragmentFunction · 0.70

Tested by

no test coverage detected