Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7167085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:31:14+00:00 2026-05-28T14:31:14+00:00

I really hope I’m missing something obvious here. Here’s a screenshot of Chrome’s console,

  • 0

I really hope I’m missing something obvious here. Here’s a screenshot of Chrome’s console, dead in front of me (well, other tab):

What's the difference between one element and the other?

e was retrieved via .getElementById("overlayidentifier") by me, from the console. The other variable is used by a rather messy script included on a site I happen to be working with.

Before I dive into the abyss of the script that originally creates and works with overlayidentifier, I just wanted to know.. what’s going on here.

Any .style changes to e have effect – nothing happens if overlayidentifier.style.~ is modified, though.

Where do I begin?

Demystified. For the more curious:

The problem was a lonely .innerHTML +=-esque piece of code somewhere on the page. Using .innerHTML causes a rebuild of the DOM structure inside the element on which it is called. So any references of elements inside, obtained prior to the .innerHTML assignment will get invalidated in a confusing way: they retain most of their the attributes can be interacted with normally, but they are no longer in the DOM tree. Which is evidenced by .parentNode returning null.

This was a fun waste of time, actually.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:31:15+00:00Added an answer on May 28, 2026 at 2:31 pm

    You have two elements with the id of overlayidentifier, as is evidenced by the little “>” arrow and the ... that says your div has content when you type overlayidentifier that are not there when you type e

    To clarify, since one of your nodes has the “>” and the other doesn’t, you have two different nodes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hope to get some help here because this is something that really makes me
I really hope you can help out here. I'm creating a theme for a
I really hope you can help me here. Below is a section of my
I really hope someone here can help out with this. I'm using Magento 1.6.1.0
I've got a massive problem and I really hope you can help me here...
I really hope this is not a question posed by millions of newbies, but
I have a problem with the esmtp application that I really hope you help
I'm almost losing it, i really hope someone can help me out! I'm using
I have a very weird problem.. I really do hope someone has an answer
I'm really confused so I hope you guys can help me. I know how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.