Skip to content

InlineCss misses space and thus breaks styles #159

@jaulz

Description

@jaulz

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

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