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 8598767
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:13:58+00:00 2026-06-12T01:13:58+00:00

I saw a strange behavior. I created a Input . <input id=’inputid’ value=’value’/>​ and

  • 0

I saw a strange behavior.
I created a Input.

<input id='inputid' value='value'/>​

and tried to access it directly from id. Instead of throwing an exception console was showing above input element.

console.log(inputid);

After that I tried to compare it with getElementById

console.log( inputid == document.getElementById('inputid'));

console was showing true.

You can see this behavior on jsfiddle.

Is it a strange behavior or am I missing something?

I tested it in Chrome 23.0.1271.10 dev-m and firefox 15.0.1.

  • 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-06-12T01:14:00+00:00Added an answer on June 12, 2026 at 1:14 am

    Back in the days of 4.0 browsers, Microsoft decided that it would be convenient to create, for every element with an id, a global variable with the same name as the id containing a reference to that element.

    Support for this has appeared in some other browsers (in some rendering modes). This support is not universal so the feature should be avoided.

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

Sidebar

Related Questions

Last night, I experienced a strange behavior in IE8 as I saw two noticeably
I'm updating mootools from 1.3.2 to 1.4.1. I saw a strange change. From this
I saw a strange behavior in a piece of code I wrote under Linux,
this morning I saw some strange code from one of my coworkers. In an
I'm getting strange results testing the return value from a function. This code is
I'm reading a book about SQL. In that book, I saw strange query below:
It was very strange when I saw this on debugging my application. int iTag
I saw a very strange issue with UITextField control. When typing in UITextField after
I saw something like the following in our production code: select max(col_val) from table_name
I just got a strange problem. I am including some files from my index.php,

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.