Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How can I remove the script type?

  • prasathragavan
  • prasathragavan's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 11 months ago #228906 by prasathragavan
How can I remove the script type? was created by prasathragavan
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.2.11+220124
Own server or LimeSurvey hosting: Own Server
Survey theme/template: Fruity
==================
Dear All,

Is there way we can remove the type=text/javascript from the script tag?

One of my requirement is to make the limesurvey page validate with html validator. Since html5 made type attribute optional, the validator gives warning for all javascript included.

Is there a way we can disable this? or where in the code I can remove this manually?I couldn't find any pointers in the code.

Any pointers will be helpful. Thanks in advance,

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 11 months ago - 2 years 11 months ago #228916 by tpartner
Replied by tpartner on topic How can I remove the script type?
The type attribute is optional but not invalid if used.

I would find a better validator.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 2 years 11 months ago by tpartner.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose