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

140
Vistas
Why does querySelectorAll() return NodeList instead of HTMLCollection?

I was recently learning about the querySelectorAll() method in JavaScript and the fact that it returns back a NodeList object containing all the elements that match a particular CSS selector.

Now the confusion I have is that if querySelectorAll() is meant to only match element nodes, why doesn't it return back an HTMLCollection instead, like getElementsByClassName() and getElementsByTagName() do?

What's the point of querySelectorAll() returning back a NodeList instance?

Is it the case that querySelectorAll() can be used to select non-element nodes as well?

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