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

255
Vistas
How do i get the current page's html element, from the firefox browser toolbox console?

So firefox allows you to view the browser's dom, via the browser developer toolbox that you have to enable separately.

In the dom, the currently opened pages are contained in browser elements, and the currently viewed one has the attribute "primary=true". Under this element there is a #document element which has the page's actual html content in it.

What i want to achieve, is to get the current page element and view it's content. I've tried this:

document.querySelector('browser[primary=true]');

Which returns the correct browser element, except it has no children, unlike in the inspector. So I can't access the page's content through that.

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