We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee1f515 commit aa8d0e3Copy full SHA for aa8d0e3
test/test.js
@@ -58,6 +58,11 @@ describe('PostHTML-Parser test', function() {
58
expect(parser('<!--comment-->')).to.eql(['<!--comment-->']);
59
});
60
61
+ it('should be parse comment', function() {
62
+ expect(parser('<script><![CDATA[console.log(1);]]></script>', {xmlMode: true}))
63
+ .to.eql([{tag: 'script', content: ['console.log(1);']}]);
64
+ });
65
+
66
it('should be parse comment in content', function() {
67
expect(parser('<div><!--comment--></div>')).to.eql([{tag: 'div', content: ['<!--comment-->']}]);
68
0 commit comments