Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class names containing html/body/head do not get dropped #58

Closed
jamespsteinberg opened this issue Nov 21, 2021 · 2 comments
Closed

Class names containing html/body/head do not get dropped #58

jamespsteinberg opened this issue Nov 21, 2021 · 2 comments

Comments

@jamespsteinberg
Copy link

jamespsteinberg commented Nov 21, 2021

Any class name with specific tags in their names will not be dropped even if the html does not contain them.
I explained this second issue poorly in #57

.anyClassNameWithhtml{
  font-weight:400;
}
.anyClassNameWithbody{
  font-weight:400;
}
.anyClassNameWithhead{
  font-weight:400;
}

<html>
  <div class="nothing"></div>
</html>

Thanks for everything!

@leeoniya
Copy link
Owner

i cannot reproduce this: https://jsfiddle.net/m4oqvLgz/

please make a runnable demo.

@jamespsteinberg
Copy link
Author

Apologies - all on my end. Forgot I was trying to whitelist "html, head, body, tbody" as they are implicit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants