How to remove javascript type attribute in Kentico

Frank Sparks asked on February 19, 2019 11:55

Am trying to remove the type attribute from script tag in Kentico 10.0 application, But unable to find any solution. According to W3C validation standards, my application throws warnings like, "the type attribute is unnecessary for javascript resources" Please click here to see attached image tutuapp.

Recent Answers


Eric Dugre answered on February 19, 2019 17:04 (last edited on February 20, 2019 14:15)

If this script tag is being dynamically generated and you can't manually modify it, I would consider creating an Output Filter. In the filter's code, you can scan the HTML for script tags and remove the type attribute.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.