Document Object Model (DOM)
DOM (short for Document Object Model) 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. Nodes can have event handlers (also known as event listeners) attached to them. Once an event is triggered, the event handlers get executed.
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:
- 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.
Here are 2,915 public repositories matching this topic...
Ample SDK - JavaScript UI Framework
-
Updated
Jan 28, 2014 - JavaScript
Interactive resume using JavaScript for DOM manipulation
-
Updated
Apr 7, 2015 - JavaScript
pure JavaScript, DOM elements drawing little game
-
Updated
May 25, 2015 - JavaScript
Practice on "DOM Scripting 2nd" Chap.12
-
Updated
Aug 16, 2015 - JavaScript
Query JSON objects with XPath 2.0
-
Updated
Jan 28, 2016 - JavaScript
Query your dom components from html and store them into a JavaScript object
-
Updated
Apr 5, 2016 - JavaScript
DOM friendly autocomplete
-
Updated
Jul 21, 2016 - JavaScript
jQuery plugin for highlighting words inside the DOM
-
Updated
Jul 28, 2016 - JavaScript
Find the most recent HTML DOM element with an id= attribute
-
Updated
Aug 3, 2016 - JavaScript
A simple way to create and render HTML Elements.
-
Updated
Aug 5, 2016 - JavaScript
Created by World Wide Web Consortium
Released October 1, 1998
- Followers
- 41 followers
- Repository
- whatwg/dom
- Website
- dom.spec.whatwg.org
- Wikipedia
- Wikipedia