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

Does not handle direct child selectors in CSS #40

Open
MeiKatz opened this issue Nov 18, 2021 · 1 comment
Open

Does not handle direct child selectors in CSS #40

MeiKatz opened this issue Nov 18, 2021 · 1 comment

Comments

@MeiKatz
Copy link

MeiKatz commented Nov 18, 2021

Hej,

I currently have the problem that direct child selectors in CSS break the code. What I mean is the following:

<style>
  .a > .b {}
</style>

will be rendered as following:

<style> .a </style>

The fix is really easy: just change this line ...

$tag_parts = explode('>', $part);

... to ...

$tag_parts = explode('>', $part, 2);

Should I create a pull request or should I create a fork and a custom package?

@puputop
Copy link

puputop commented Jun 11, 2022

tried it - it's work good

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