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

85
Visualizações
Is `Element.innerHTML` evaluated on every access to it?

Is Element.innerHTML (or Element.outerHTML) is evaluated each time something gets access to it, each time an element is changed, or lazily only if the element has been changed?

For example, where is it evaluated in the following code for el:

let el = document.createElement("div")
let another = document.createElement("div")
let text = document.createTextNode("text")

// evaluated here?
el.appendChild(another)

// again evaluated here?
another.appendChild(text)

// lazily evaluated here?
console.log(el.innerHTML)
// what will happen here? simple access or reevaluation?
console.log(el.innerHTML)
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