Skip to content

resolve parses Downlevel-revealed and valid version #36

@Scrum

Description

@Scrum
  • 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]-->'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions