From 9257f300b94c3a9590dfe44a396d3eb889a69738 Mon Sep 17 00:00:00 2001 From: Minas Keshishyan Date: Mon, 3 Feb 2020 13:45:26 +0400 Subject: [PATCH] fix testes to expect the same behaviout as browsers --- test/html.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/html.js b/test/html.js index 32bf39b..dd34cf4 100644 --- a/test/html.js +++ b/test/html.js @@ -300,8 +300,8 @@ describe('HTML Parser', function () { var root = parseHTML('

'); root.firstChild.rawAttributes.should.eql({ 'a': '12', - 'data-id': '"!$$&"', - 'yAz': '\'1\'' + 'data-id': '!$$&', + 'yAz': '1' }); }); }); @@ -335,7 +335,7 @@ describe('HTML Parser', function () { 'a': '12', 'b': '13', }); - root.firstChild.toString().should.eql('

'); + root.firstChild.toString().should.eql('

'); }); it('should remove an attribute from the element', function () { var root = parseHTML('

'); @@ -344,7 +344,7 @@ describe('HTML Parser', function () { root.firstChild.attributes.should.eql({ 'a': '12', }); - root.firstChild.toString().should.eql('

'); + root.firstChild.toString().should.eql('

'); }); it('should keep quotes arount value', function () { var root = parseHTML('

');