whitespace causes parse error for $(someHtmlString)
coolaj86 opened this issue · comments
HTML:
<ul id="my-list">
<li>Foo</li>
</ul>
JavaScript:
var $ = require('ender');
$($('#my-list').html().trim()) // works
$($('#my-list').html()) // fails
TypeError: Cannot read property '1' of null
this is qwery's html creation method. i can see where it would fail here... really it just needs an optional whitespace matcher of \s*
at the front