# @oozcitak/dom

> A modern DOM implementation

Latest version **3.0.0** (published 2026-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @oozcitak/dom
pnpm add @oozcitak/dom
yarn add @oozcitak/dom
bun add @oozcitak/dom
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2026-02-03 |
| First published | 2019-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=20.0 |
| Dependencies | 3 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Ozgur Ozcitak |
| Maintainers | oozcitak |
| Keywords | dom, whatwg |

## Links

- npm: https://www.npmjs.com/package/@oozcitak/dom
- Repository: https://github.com/oozcitak/dom
- Homepage: http://github.com/oozcitak/dom
- Issues: http://github.com/oozcitak/dom/issues
- npm.io page: https://npm.io/package/@oozcitak/dom

## Dependencies (3)

- [@oozcitak/url](https://npm.io/package/@oozcitak/url.md) ^4.0.0
- [@oozcitak/util](https://npm.io/package/@oozcitak/util.md) ^11.0.0
- [@oozcitak/infra](https://npm.io/package/@oozcitak/infra.md) ^3.0.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2026-02-03
- 2.0.2 — 2025-11-26
- 2.0.1 — 2025-10-08
- 2.0.0 — 2025-10-07
- 1.15.10 — 2021-07-29
- 1.15.9 — 2021-07-29
- 1.15.8 — 2020-06-30
- 1.15.7 — 2020-06-29
- 1.15.6 — 2020-06-16
- 1.15.5 — 2020-03-29
- 1.15.4 — 2020-03-13
- 1.15.3 — 2020-03-13
- 1.15.2 — 2020-02-07
- 1.15.1 — 2020-02-06
- 1.15.0 — 2020-02-05
- … 29 more at https://npm.io/package/@oozcitak/dom/versions

## README

# DOM
A Javascript implementation of the [DOM Living Standard](https://dom.spec.whatwg.org/).

[![License](http://img.shields.io/npm/l/@oozcitak/dom.svg?style=flat-square)](http://opensource.org/licenses/MIT)
[![NPM Version](https://img.shields.io/npm/v/@oozcitak/dom?logo=npm&style=flat-square)](https://www.npmjs.com/package/@oozcitak/dom)

[![Node.js CI](https://github.com/oozcitak/dom/workflows/build/badge.svg)](https://github.com/oozcitak/dom/actions)
[![Code Coverage](https://codecov.io/gh/oozcitak/dom/branch/master/graph/badge.svg)](https://codecov.io/gh/oozcitak/dom)

# Version
Current version implements the standard as of commit [57512fa](https://dom.spec.whatwg.org/commit-snapshots/57512fac17cf2f1c4c85be4aec178c8086ee5ee4/) (Last Updated 24 September 2019).

This DOM implementation is for _XML documents only_.

# Installation
```
npm install @oozcitak/dom
```

# Usage
Create an instance of the [`DOMImplementation`](https://dom.spec.whatwg.org/#interface-domimplementation) class to construct the DOM tree.

```js
const { DOMImplementation } = require("@oozcitak/dom");

const dom = new DOMImplementation();
const doc = dom.createDocument('ns', 'root');
```

The module also exports [`DOMParser`](https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#domparser) and [`XMLSerializer`](https://w3c.github.io/DOM-Parsing/#the-xmlserializer-interface) classes as in the browser.

---
_Source: https://npm.io/package/@oozcitak/dom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
