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

InlineCss misses space and thus breaks styles #159

Open
jaulz opened this issue Sep 23, 2021 · 0 comments
Open

InlineCss misses space and thus breaks styles #159

jaulz opened this issue Sep 23, 2021 · 0 comments

Comments

@jaulz
Copy link

jaulz commented Sep 23, 2021

Detailed description

When using InlineCss middleware I noticed that the middleware misses a space and in the example below you can see how there is no space between the data attribute and the class attribute. Does that maybe happen because the data attribute is empty?

Without middleware:

<main class="flex-1 space-y-4" style="flex-grow:8;" data-v-c064ebb4="">
</main>

With middleware:

<main data-v-c064ebb4class="flex-1 space-y-4 page_speed_1184082138">
</main>

Context

Currently, it breaks the styles because the class attribute is not recognized.

Possible implementation

Not sure yet how to solve it properly...

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

  • Version used (e.g. PHP 7.1, HHVM 3): PHP8
  • Operating system and version (e.g. Ubuntu 16.04, Windows 7): macOS
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

1 participant