Skip to content

Contents inside element tags are also being scanned #27

Open
@jeytii

Description

@jeytii

It seems that the plugin is reading the text contents as well. Consider the code below:

HTML:
<h1 class="text">Hello</h1>

Compiled CSS:

.text {
    color: red;
}
.hello {
    background: blue;
}

The .hello class is supposed to be removed from the compiled CSS since such class name doesn't exist in the HTML file, but it's still there because of h1's text content, which is "Hello".

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