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