Open thomasleveil opened 6 years ago
Here's a smaller test case:
<html>
<span/>
<p/>
<b/>
</html>
becomes:
<html>
<span>
<p>
<b>
</b></p></span></html>
it('Issue #42', function() {
return htmlSorter('<html>\n <div/>\n <span/>\n</html>', {}).then((result) => {
assert.equal(result.html, '<html>\n <div/>\n <span/>\n</html>');
});
});
The following HTML document gets its element hierarchy altered when formatting the document
context
Enabled extensions:
test case
which displays the following svg image:
issue
When formatting the document, the HTML it changed to:
which produces the following image: