-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
When sprig, closing HTML tag in <script> get removed #34
Comments
What are you trying to do with this code? JavaScript code is generally placed inside of <script type="text/javascript"><span>placeholder</span></script> Either way, you should try to avoid having |
Agreed. Yet is the stripping behavior normal / expected? Issue originated from another plugin: |
The markup is being modified by the DOM library that Sprig uses to walk the DOM tree looking for attributes. I'll look into what can be done about this. |
Your code appears to be invalid HTML so Sprig is not really at fault here. I suggest you use the template tag, which is valid HTML and works fine with Sprig. <template><p>placeholder</p></template> |
i think |
Just weighing in here. It's not an option to use I suppose as @bencroker mentions, its being modified by the DOM library, so it's probably an issue on their end. Formie's repeater field uses |
Ok reopening and I’ll see what can be done to make this work. |
Fixed in bf4a9ab and released in version 1.0.0-beta.17. |
Describe the bug
When
sprig
, closing HTML tag in<script>
get removedTo reproduce
Live test case: https://asiaspa.com/form?123
Simplified test case
Rendered Result:
Versions
The text was updated successfully, but these errors were encountered: