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

123
Vistas
What does this action do: document.querySelector('#element')['something'] = 'whatever'?

document.querySelector('#element')['something'] = 'whatever' What am I achieving by setting some sort of invisible attribute on the element? Is there any documentation on this?

I played around with it, confirmed that I can retrieve the value later and now I'm wondering is how useful it is and how reliable it is.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Yes, it can be done. But it's not advised. Remember that html and dom have many standards to adhere to and with changes such as these, you are testing the limits of user's browsers expectations.

This is more clearly explained in the answer to this question: Javascript DOM: Setting custom DOM element properties

about 4 years ago · Juan Pablo Isaza Denunciar
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