We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d89bf85 commit cbeb319Copy full SHA for cbeb319
test/test.js
@@ -204,4 +204,18 @@ describe('PostHTML-Parser test', function() {
204
{ tag: 'mySuperTag' }
205
]);
206
});
207
+
208
+ it('should be parse simple contents are split with "<" in comment', function() {
209
+ const html = `<a> /* width < 800px */ <hr /> test</a>`
210
+ expect(parser(html)).to.eql([
211
+ { tag: 'a', content: [' /* width < 800px */ ', {tag: 'hr'}, ' test'] }
212
+ ]);
213
+ });
214
215
+ it('should be parse style contents are split with "<" in comment', function() {
216
+ const html = `<style> /* width < 800px */ @media (max-width: 800px) { /* selectors */} </style>`
217
218
+ { tag: 'style', content: [' /* width < 800px */ @media (max-width: 800px) { /* selectors */} '] }
219
220
221
0 commit comments