MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / jqLiteParseHTML

Function jqLiteParseHTML

web/static/bower_components/angular/angular.js:2753–2766  ·  view source on GitHub ↗
(html, context)

Source from the content-addressed store, hash-verified

2751}
2752
2753function jqLiteParseHTML(html, context) {
2754 context = context || document;
2755 var parsed;
2756
2757 if ((parsed = SINGLE_TAG_REGEXP.exec(html))) {
2758 return [context.createElement(parsed[1])];
2759 }
2760
2761 if ((parsed = jqLiteBuildFragment(html, context))) {
2762 return parsed.childNodes;
2763 }
2764
2765 return [];
2766}
2767
2768/////////////////////////////////////////////
2769function JQLite(element) {

Callers 1

JQLiteFunction · 0.85

Calls 1

jqLiteBuildFragmentFunction · 0.85

Tested by

no test coverage detected