From 9a48e032f1dedce41562b1d89d8abeea6ecbd725 Mon Sep 17 00:00:00 2001 From: taoqf Date: Wed, 11 Mar 2020 10:53:43 +0800 Subject: [PATCH] add tests, pull #23 --- test/html.js | 2 ++ 1 file changed, 2 insertions(+) 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('

');