(html, context)
| 2811 | } |
| 2812 | |
| 2813 | function jqLiteParseHTML(html, context) { |
| 2814 | context = context || document; |
| 2815 | var parsed; |
| 2816 | |
| 2817 | if ((parsed = SINGLE_TAG_REGEXP.exec(html))) { |
| 2818 | return [context.createElement(parsed[1])]; |
| 2819 | } |
| 2820 | |
| 2821 | if ((parsed = jqLiteBuildFragment(html, context))) { |
| 2822 | return parsed.childNodes; |
| 2823 | } |
| 2824 | |
| 2825 | return []; |
| 2826 | } |
| 2827 | |
| 2828 | function jqLiteWrapNode(node, wrapper) { |
| 2829 | var parent = node.parentNode; |
no test coverage detected