Skip to content

DJANGO_CHECK_SEO_EXCLUDE_CONTENT does not exclude content in conditional comments #44

@adrien-delhorme

Description

@adrien-delhorme

Describe the bug
The content inside html conditional comments is not excluded even though it is referenced in DJANGO_CHECK_SEO_EXCLUDE_CONTENT setting.

To Reproduce
Steps to reproduce the behavior:

Considering the following template:

<body>
  <!--[if lt IE 8]>
    <p class="catch-me-if-you-can"></p>
  <![endif]-->
</body>
  1. Add DJANGO_CHECK_SEO_EXCLUDE_CONTENT = ".catch-me-if-you-can" in your settings
  2. Click on "Check SEO" toolbar button
  3. Check the "Raw data" section
  4. See that .catch-me-if-you-can HTML tag is not excluded

Expected behavior
.catch-me-if-you-can HTML tag is excluded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions