Skip to content

Files

Latest commit

 

History

History

dom

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

🦊 Virtual DOM

JSR JSR Score NPM Coverage

Caution

This package is in early development and is not yet ready for production use.

This library implements Web APIs so it is possible to create "browser-like" environments which can then be used to perform server-side rendering or unit-testing without a fully-fledged browser.

While it will work on any runtime following standards, please note that any built-in Web API present in the Deno runtime is not re-implemented, to keep it maintainable and lightweight.

Implemention follows Mozilla Developer Network documentation and supported features mostly reflects what is available on a Firefox browser (when possible).

It tries to match standards as closely as possible (so many classes cannot be instantiated directly for example) but behavior may differ slightly in some cases (please open an issue in this case).

✨ Features

This library implements web APIs based on lib.dom.d.ts type definitions, which means it'll satisfy any code that relies on these types:

/// <reference lib="dom" />

Supported Web APIs (some may be partially implemented, in which case accessing or calling such a property will throw a DOMException):

📜 Licenses

Copyright (c) Simon Lecoq <@lowlighter>. (MIT License)
https://github.com/lowlighter/libs/blob/main/LICENSE