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

Function jqLiteParseHTML

test/angular/1.3/angular.js:2502–2515  ·  view source on GitHub ↗
(html, context)

Source from the content-addressed store, hash-verified

2500}
2501
2502function jqLiteParseHTML(html, context) {
2503 context = context || document;
2504 var parsed;
2505
2506 if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
2507 return [context.createElement(parsed[1])];
2508 }
2509
2510 if ((parsed = jqLiteBuildFragment(html, context))) {
2511 return parsed.childNodes;
2512 }
2513
2514 return [];
2515}
2516
2517/////////////////////////////////////////////
2518function JQLite(element) {

Callers 1

JQLiteFunction · 0.70

Calls 1

jqLiteBuildFragmentFunction · 0.70

Tested by

no test coverage detected