(html, context)
| 2798 | } |
| 2799 | |
| 2800 | function jqLiteParseHTML(html, context) { |
| 2801 | context = context || document; |
| 2802 | var parsed; |
| 2803 | |
| 2804 | if ((parsed = SINGLE_TAG_REGEXP.exec(html))) { |
| 2805 | return [context.createElement(parsed[1])]; |
| 2806 | } |
| 2807 | |
| 2808 | if ((parsed = jqLiteBuildFragment(html, context))) { |
| 2809 | return parsed.childNodes; |
| 2810 | } |
| 2811 | |
| 2812 | return []; |
| 2813 | } |
| 2814 | |
| 2815 | function jqLiteWrapNode(node, wrapper) { |
| 2816 | var parent = node.parentNode; |
no test coverage detected