diff --git a/test/html.js b/test/html.js index 7929f83..4213d10 100644 --- a/test/html.js +++ b/test/html.js @@ -374,6 +374,8 @@ describe('HTML Parser', function () { 'b': '13', }); root.firstChild.toString().should.eql('

'); + root.firstChild.setAttribute('required', ''); + root.firstChild.toString().should.eql('

'); }); it('should convert value to string', function () { const root = parseHTML('

');