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

  • SEARCH
  • Home
  • 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 3437148
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:01:47+00:00 2026-05-18T08:01:47+00:00

I discovered that the source of a bug in some code I was writing

  • 0

I discovered that the source of a bug in some code I was writing was because of a native property on the window object called Entity (obviously accessible via window.Entity). I’ve since worked around the problem by not calling my thing “Entity”, but I was wondering what the hell is that property?

  • 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-18T08:01:47+00:00Added an answer on May 18, 2026 at 8:01 am

    I believe it’s just the constructor for Entities, which can be used in the same manner as window.Element. It seems like the user can’t define new entities or elements, only the browser itself when it renders the page.

    http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-527DCFF2

    window.Entity.prototype.__proto__ contains these:

    ATTRIBUTE_NODE: 2
    CDATA_SECTION_NODE: 4
    COMMENT_NODE: 8
    DOCUMENT_FRAGMENT_NODE: 11
    DOCUMENT_NODE: 9
    DOCUMENT_POSITION_CONTAINED_BY: 16
    DOCUMENT_POSITION_CONTAINS: 8
    DOCUMENT_POSITION_DISCONNECTED: 1
    DOCUMENT_POSITION_FOLLOWING: 4
    DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32
    DOCUMENT_POSITION_PRECEDING: 2
    DOCUMENT_TYPE_NODE: 10
    ELEMENT_NODE: 1
    ENTITY_NODE: 6
    ENTITY_REFERENCE_NODE: 5
    NOTATION_NODE: 12
    PROCESSING_INSTRUCTION_NODE: 7
    TEXT_NODE: 3
    addEventListener: function addEventListener() { [native code] }
    appendChild: function appendChild() { [native code] }
    cloneNode: function cloneNode() { [native code] }
    compareDocumentPosition: function compareDocumentPosition() { [native code] }
    constructor: function Node() { [native code] }
    dispatchEvent: function dispatchEvent() { [native code] }
    hasAttributes: function hasAttributes() { [native code] }
    hasChildNodes: function hasChildNodes() { [native code] }
    insertBefore: function insertBefore() { [native code] }
    isDefaultNamespace: function isDefaultNamespace() { [native code] }
    isEqualNode: function isEqualNode() { [native code] }
    isSameNode: function isSameNode() { [native code] }
    isSupported: function isSupported() { [native code] }
    lookupNamespaceURI: function lookupNamespaceURI() { [native code] }
    lookupPrefix: function lookupPrefix() { [native code] }
    normalize: function normalize() { [native code] }
    removeChild: function removeChild() { [native code] }
    removeEventListener: function removeEventListener() { [native code] }
    replaceChild: function replaceChild() { [native code] }
    __proto__: Object
    

    And as to what types of entities there are, just look at the HTML DTD and you’ll see a bunch of entities defined: http://www.w3.org/TR/html4/sgml/dtd.html

    Background info on entities:

    • http://www.javacommerce.com/displaypage.jsp?name=entities.sql&id=18238
    • http://www.xml.com/pub/a/98/08/xmlqna0.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently discovered a bug in NHibernate project & reported & fixed the source
We discovered a possible bug involving the DataGridView. The DataGridView has a property, StandardTab,
I discovered the source of a really insidious bug today. It's all safely fixed
I recently discovered that Delphi has a global variable called ReportMemoryLeaksOnShutdown, when set to
I was working on my application and discovered strange behaviour of methods that called
I discovered that it is possible to extract the hard-coded strings from a binary.
I've just discovered that in my course, the lecturer doesn't want us to use
I just discovered that my nodejs app keeps crashing, so I've used forever app.js
We recently discovered that the Google Maps API does not play nicely with SSL.
Today I discovered that my fresh installation of Apache HTTP Server is able to

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.