X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b60fde6f2bb4d1e10bd4187d54601315aa2e3435..65bc68bd4bf15529bfc3a59b135de3ace448ba42:/modules/documentCanvas/canvas/canvas.test3.js diff --git a/modules/documentCanvas/canvas/canvas.test3.js b/modules/documentCanvas/canvas/canvas.test3.js index a68e66b..76ece55 100644 --- a/modules/documentCanvas/canvas/canvas.test3.js +++ b/modules/documentCanvas/canvas/canvas.test3.js @@ -1102,6 +1102,15 @@ describe('Canvas', function() { expect(input.isEqualNode(output)).to.be.true; }); + it('keeps arbitrary node attributes intact', function() { + var xmlIn = '
', + $xmlOut = $(canvas.fromXML(xmlIn).toXML()); + + expect($xmlOut.attr('a')).to.equal('1'); + expect($xmlOut.attr('xmlns:dcterms')).to.equal('http://purl.org/dc/terms/'); + + }); + describe('formatting output xml', function() { /*it('keeps white spaces at the edges of input xml', function() { var xmlIn = '
',