describe('outerHTML', function () {
var
chai = require('chai'),
assert = chai.assert,
compare = require('dom-compare').compare;
var
DomParser = require('../index.js'),
parser = new DomParser();
it('unclosed tag', function(){
var html =
'
\n' +
'
\n' +
' \n' +
'
\n' +
'
1
\n' +
'
\n' +
' \n' +
'
\n' +
'
';
var
dom = parser.parseFromString(html),
ctn = dom.getElementById('root');
assert.equal(ctn.outerHTML, html);
});
});