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

Do not remove ID attribute from SCRIPT tags #506

Open
2lm opened this issue Apr 19, 2024 · 0 comments
Open

Do not remove ID attribute from SCRIPT tags #506

2lm opened this issue Apr 19, 2024 · 0 comments

Comments

@2lm
Copy link

2lm commented Apr 19, 2024

When Klaro rewrites script tags of the third-party apps/trackers, it removes id attribute if it is present in the script tag.
It causes problems with some apps, for example Zendesk Widget.
The tag below

<script id="ze-snippet" type="text/plain" data-type="application/javascript" data-src="https://static.zdassets.com/ekr/snippet.js?key=***" data-name="zendesk"></script>

is being rewritten to:

<script type="text/javascript" src="https://static.zdassets.com/ekr/snippet.js?key=***"></script>

...and stops working, because of the missing id attribute.
Is it possible to change this behavior?

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