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

115
Vistas
How to detect if browser supports particular HTML escape characters?

I'm using JavaScript to add append "✓" after a button's action comes back verified from the server. For the most part, it works OK, and I'm satisfied with how it looks. I haven't found an ASCII character to adequately communicat the same message.

My problem is that some older browsers, notably Firefox 3.6 and Camino do not understand this escape sequence, and so the user also sees "✓" instead of the checkmark character.

Is there a way to detect if the browser does not supprot this escape sequence and replace it with something else, e.g. "OK"? In other words, what goes in the if statement below?

// ...
var elemOK = document.createElement('span');
if ( ... ) { /* <----- what goes inside the if statement? */
    elemOK.innerHTML = '&check;'; // checkmark
} else {
    elemOK.innerHTML = 'OK';
}
elemActionButton.appendChild(elemOK);
// ....
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