Closed bjhijmans closed 10 months ago
This is relatively similar to the problem described in #11.
I'll defenitly be looking at implementing a blacklist feature as described there, and probably try to add a set of sensible default situations where to never add an HTML comment.
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
What happened?
We have a layout that lets you insert classes into the body using @yield and @section. But the section commenter makes the classes invalid.
How to reproduce the bug
Have a page with a
@yield
for a class:Then add a page that extends that layout and try to add classes:
The resulting tag is as follows:
Due to the placement of the comment tag, my browser (at least chrome and firefox) doesn't recognize the
gray-bg
andlogin-page
classes. Adding a space before and after the HTML comments fixes the issue. Maybe there should always be a space around the comments?Package Version
1.0.3
PHP Version
8.1.x
Laravel Version
10.13.0
Which operating systems does with happen with?
Linux
Notes
No response