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 430 public repositories matching this topic...
The fast, flexible, and elegant library for parsing and manipulating HTML and XML.
-
Updated
Feb 14, 2025 - TypeScript
Relocate resource intensive third-party scripts off of the main thread and into a web worker. 🎉
-
Updated
Dec 24, 2024 - TypeScript
✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
-
Updated
Feb 14, 2025 - TypeScript
The fast & forgiving HTML and XML parser
-
Updated
Feb 14, 2025 - TypeScript
A JavaScript implementation of a web browser without its graphical user interface
-
Updated
Feb 12, 2025 - TypeScript
A simple and fast API to monitor elements as you scroll
-
Updated
Jul 17, 2023 - TypeScript
📝 HTML to React parser.
-
Updated
Feb 14, 2025 - TypeScript
🐕 Simulate user events
-
Updated
Feb 5, 2025 - TypeScript
watching-you is a javascript library for building animations that watch anything on DOM 👀.
-
Updated
Feb 1, 2025 - TypeScript
🏹 Draw arrows between React elements 🖋
-
Updated
Jan 21, 2025 - TypeScript
📸 Quickly generate image from DOM node using HTML5 canvas and SVG.
-
Updated
Feb 13, 2025 - TypeScript
ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library
-
Updated
Feb 14, 2025 - TypeScript
Colorful shadows for your images. 🎨
-
Updated
Dec 10, 2023 - TypeScript
🎨 A React component that injects SVG into the DOM.
-
Updated
Feb 14, 2025 - TypeScript
Pure and simple virtual DOM library
-
Updated
May 31, 2024 - TypeScript
🙋♀️ 3kb library for tiny web apps
-
Updated
May 19, 2023 - TypeScript
Tool for generating dom related TypeScript and JavaScript library files
-
Updated
Feb 12, 2025 - TypeScript
a CSS selector compiler & engine
-
Updated
Feb 14, 2025 - TypeScript
JavaScript object that creates unique CSS selector for given element.
-
Updated
Feb 14, 2025 - TypeScript
Created by World Wide Web Consortium
Released October 1, 1998
- Followers
- 46 followers
- Repository
- whatwg/dom
- Website
- dom.spec.whatwg.org
- Wikipedia
- Wikipedia