Can you confirm that x-kendo-template is not required?

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    27 posts
    Member since:
    Jan 2013

    Posted 10 Dec 2013 Link to this post

    I have been annoyed that I don't get any html syntax highlighting in visual studio 2012 within my kendo templates such as:

    <script id="my-template" type="text/x-kendo-template">

    I found this stackoverflow question that explains you can just use text/html as the type instead of text/x-kendo-template.

    This indeed works!

    Can you confirm this is a valid workaround and it won't break in the future? Or suggest an alternative?


  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 11 Dec 2013 Link to this post

    Hello Ryan,

    We confirm that the type can be set to anything but text/javascript. Setting the type is required to prevent the browser from executing the contents of the script element.

    Atanas Korchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top