Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
Html script type "x-custom-template", is this a naming convention or am I free to use anything I want (in a good practice sense)?

I came across this question: Defining a HTML template to append using JQuery where the accepted answer uses "x-custom-template" as script type.

After some searching I found out in the following question: What's the difference between using <script type="text/x-custom-template"> and <script type="text/template">? where the accepted comment pointed out that

The use of an invalid MIME type as the value of the type attribute of a (both text/template and text/x-custom-template are invalid REF) is used specifically to prevent the browser from trying to interpret the contents of the tag as JavaScript code (and subsequently throwing a runtime error due to bad JavaScript syntax.). So this basically allows you to put anything inside the script tag for future reference.

Now my question is, is this "text/x-custom-script" a "naming convention" that is very widely used for the purpose and it's a bad practice to use something like "text/no-javascript" to achieve the same effect, or it's just a minority of people that uses "x-custom-script" and I can use basically anything I want and is still a good practice.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda