We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eadaed1 commit aeb413eCopy full SHA for aeb413e
1 file changed
test/parse.js
@@ -303,6 +303,12 @@ test('parse', function (t) {
303
children: []
304
}], 'should not explode on trailing whitespace');
305
306
+ html = ' Hi There ';
307
+ parsed = HTML.parse(html);
308
+ t.deepEqual(parsed, [{
309
+ type: 'text', content: ' Hi There '
310
+ }], 'should handle text nodes at the top-level');
311
+
312
html = '<div>Hi</div> There ';
313
parsed = HTML.parse(html);
314
t.deepEqual(parsed, [{
0 commit comments