Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

247
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda