posthtml-beautify icon indicating copy to clipboard operation
posthtml-beautify copied to clipboard

resolve parses Downlevel-revealed and valid version

Open Scrum opened this issue 9 years ago • 2 comments

  • [ ] Downlevel-revealed Conditional Comments
<![if !IE]><p>You are not using Internet Explorer.</p><![endif]>

after htmlparser2 return

{ tag: 'p',
  content: [ 'You are not using Internet Explorer.' ] }
  • [ ] Valid Downlevel-revealed Conditional Comments
<!--[if !IE]>--><link href="non-ie.css" rel="stylesheet"><!--<![endif]-->
<!--[if gte IE 7]><!--><p>This is shown in downlevel browsers and IE7 or later.</p><!--<![endif]-->

after htmlparser2 return

1: '<!--[if !IE]>-->',
2: { tag: 'link',
     attrs: { href: 'non-ie.css', rel: 'stylesheet' } },
3: '<!--<![endif]-->'
4: '<!--[if gt IE 6]><!-->'
5: 'This code displays on non-IE browsers and on IE 7 or higher.'
6: '<!--<![endif]-->'

Scrum avatar Aug 04 '16 08:08 Scrum

Create preparse or convert to normal comment.

Scrum avatar Feb 09 '17 21:02 Scrum