You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just came out with error when I write template file with <script>let test = '<div></div>';</script>
Your hook changed it to <script>let test = '<div></script></section></div>';</script> and browser throwed error Uncaught SyntaxError: Invalid or unexpected token
I spend hour to find out solution.
thank you for creating an issue.
I was able to reproduce the problem. I am adding this to is_themecore roadmap.
We came across a lot of problems with DOMDocument. I am not sure but we might get rid of it in is_themecore v5.
I think there should be better way to manipulate HTML. DomDocument is easy but not best. It requires many extra flags to works as expected so it's platform dependant too. I am not sure is it the fastest way to manipulate DOM? Maybe you should just use some regex? It will require extra time for tests. Have a nice day.
Description
I just came out with error when I write template file with
<script>let test = '<div></div>';</script>
Your hook changed it to
<script>let test = '<div></script></section></div>';</script>
and browser throwed error Uncaught SyntaxError: Invalid or unexpected tokenI spend hour to find out solution.
Node.js version
v20.10.0
php version
8.1
OS and it's version
MacOs 14.2.1 (23C71)
Browsers
Chrome
Required module/theme
is_themecore
Reproduction steps
Logs
No response
The text was updated successfully, but these errors were encountered: