Global Information Lookup Global Information

Document Object Model information


Document Object Model (DOM)
Example of DOM hierarchy in an HTML document
AbbreviationDOM
First publishedOctober 1, 1998; 25 years ago (1998-10-01)
Latest versionDOM4[1]
November 19, 2015; 8 years ago (2015-11-19)
OrganizationWorld Wide Web Consortium, WHATWG
Base standardsWHATWG DOM Living Standard
W3C DOM4

The Document Object Model (DOM) is a cross-platform and language-independent interface that treats an HTML or XML document as a tree structure wherein each node is an object representing a part of the document. The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree; with them one can change the structure, style or content of a document.[2] Nodes can have event handlers (also known as event listeners) attached to them. Once an event is triggered, the event handlers get executed.[3]

The principal standardization of the DOM was handled by the World Wide Web Consortium (W3C), which last developed a recommendation in 2004. WHATWG took over the development of the standard, publishing it as a living document. The W3C now publishes stable snapshots of the WHATWG standard.

In HTML DOM (Document Object Model), every element is a node:[4]

  • A document is a document node.
  • All HTML elements are element nodes.
  • All HTML attributes are attribute nodes.
  • Text inserted into HTML elements are text nodes.
  • Comments are comment nodes.
  1. ^ All versioning refers to W3C DOM only.
  2. ^ "Document Object Model (DOM): definition, structure and example". IONOS Digitalguide. Retrieved 2022-04-21.
  3. ^ "Document Object Model (DOM)". W3C. Retrieved 2012-01-12. The Document Object Model is a platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents.
  4. ^ "JavaScript HTML DOM".

and 23 Related for: Document Object Model information

Request time (Page generated in 0.8965 seconds.)

Document Object Model

Last Update:

The Document Object Model (DOM) is a cross-platform and language-independent interface that treats an HTML or XML document as a tree structure wherein...

Word Count : 2089

Object model

Last Update:

Examples are the object models of Java, the Component Object Model (COM), or Object-Modeling Technique (OMT). Such object models are usually defined...

Word Count : 602

Browser Object Model

Last Update:

Browser Object Model (BOM) is a browser-specific convention referring to all the objects exposed by the web browser. Unlike the Document Object Model, there...

Word Count : 294

Dynamic HTML

Last Update:

and CSS, the contents of the document are represented as objects in a programming model known as the Document Object Model (DOM). The DOM API is the foundation...

Word Count : 1429

WHATWG

Last Update:

specifications for the HyperText Markup Language (HTML) and the Document Object Model (DOM). The central organizational membership and control of WHATWG...

Word Count : 1366

Web storage

Last Update:

Web storage, sometimes known as DOM storage (Document Object Model storage), is a standard JavaScript API provided by web browsers. It enables websites...

Word Count : 1220

XML

Last Update:

parsing code. Document Object Model (DOM) is an API that allows for navigation of the entire document as if it were a tree of node objects representing...

Word Count : 7023

Data model

Last Update:

represented service or system. For example, the Document Object Model (DOM) [1] is a collection of objects that represent a page in a web browser, used by...

Word Count : 5104

JDOM

Last Update:

JDOM is an open-source Java-based document object model for XML that was designed specifically for the Java platform so that it can take advantage of...

Word Count : 317

Virtual DOM

Last Update:

A virtual DOM is a lightweight JavaScript representation of the Document Object Model (DOM) used in declarative web frameworks such as React, Vue.js,...

Word Count : 206

Adapter pattern

Last Update:

example is an adapter that converts the interface of a Document Object Model of an XML document into a tree structure that can be displayed. The adapter...

Word Count : 1935

DOM event

Last Update:

DOM (Document Object Model) Events are a signal that something has occurred, or is occurring, and can be triggered by user interactions or by the browser...

Word Count : 2249

Component Object Model

Last Update:

Component Object Model (COM) is a binary-interface standard for software components introduced by Microsoft in 1993. It is used to enable inter-process...

Word Count : 4675

Canvas element

Last Update:

as an object in a scene graph or Document Object Model, which is subsequently rendered to a bitmap. This means that if attributes of an SVG object are changed...

Word Count : 1486

Div and span

Last Update:

client-side code will need to navigate the internal structure (or Document Object Model) of the web page. The most common reason for this is that the page...

Word Count : 1557

Browser Helper Object

Last Update:

Document Object Model (DOM) of the current page and to control navigation. Because BHOs have unrestricted access to the Internet Explorer event model...

Word Count : 896

JsonML

Last Update:

client where it can be deterministically reconstructed into DOM (Document Object Model) elements. Progressive enhancement strategy can be employed during...

Word Count : 697

Processing Instruction

Last Update:

anywhere in a document, intended to carry instructions to the application. Processing instructions are exposed in the Document Object Model as Node...

Word Count : 358

JavaScript engine

Last Update:

JavaScript engine runs in concert with the rendering engine via the Document Object Model and Web IDL bindings. However, the use of JavaScript engines is...

Word Count : 626

DOM Inspector

Last Update:

Its main purpose is to inspect and edit the Document Object Model (DOM) tree of HTML and XML-based documents. A DOM node can be selected from the tree structure...

Word Count : 200

HTML5

Last Update:

and <menu> were changed, redefined, or standardized. The APIs and Document Object Model (DOM) are now fundamental parts of the HTML5 specification, and...

Word Count : 5512

HTML5test

Last Update:

Cascading Style Sheets, ECMAScript, Scalable Vector Graphics, or the Document Object Model. Conformance testing for those standards is within the purview of...

Word Count : 424

Java API for XML Processing

Last Update:

capability of validating and parsing XML documents. It has three basic parsing interfaces: the Document Object Model parsing interface or DOM interface the...

Word Count : 1249

PDF Search Engine © AllGlobal.net