GitShow/developit/undom
developit

undom

🍩 1kb minimally viable DOM Document implementation

by developit
domdocumenthtmlhtml-documentpolyfillpreactserializationshim
Star on GitHubForkWebsitenpm

JavaScript

691 stars25 forks8 contributorsQuiet Β· 5y agoSince 20160.4.0MIT

Meet the team

See all 8 on GitHub β†’
developit
developit45 contributions
andyrj
andyrj1 contribution
bmeurer
bmeurer1 contribution
DanielRuf
DanielRuf1 contribution
jamesbirtles
jamesbirtles1 contribution
lukeed
lukeed1 contribution
hrldcpr
hrldcpr1 contribution

Languages

View on GitHub β†’
JavaScript100%

Commit activity

Last 12 weeks Β· 0 commits

Full graph β†’

Community health

2 of 6 standards met

Community profile β†’
42
βœ“READMEβœ“Licenseβ—‹Contributingβ—‹Code of Conductβ—‹Issue Templateβ—‹PR Template

Recent PRs & issues

Quiet Β· 4 in progress Β· Last activity 5y ago
See all on GitHub β†’
mindplay-dk
Problem with spiesOpenIssue

I'm trying to spy on in a test - I have a node being modified like this: To my surprise, it was counting way too many calls to . It turns out, several of these methods are being called internally, for brevity. The real DOM does not call it's own public methods, afaik? If it needs to remove children for other reasons than calls to , it does not internally call the method, it just removed them. How would you feel about moving the internally reused methods to private methods?

mindplay-dk Β· 5y ago
mindplay-dk
NodeListOpenIssue

I tried using this for a unit-test, and ran into some issues with e.g. , which in regular DOM is a NodeList and not just an , which is missing, for example, the , and iterator methods. I can foresee issues as well with e.g. being a plain created by filtering - whereas, in regular DOM, mutating the of the parent that generated the collection, would cause the iterator to reflect those changes. Maybe this is "by design", favoring simplicity over correctness? If so, that isn't clear from the "Project Goals" stated in the README right now - it doesn't seem to imply that this deviates from DOM in terms of more than features. Lacking features is a matter of scope - but incompatibilities probably ought to be designated in the documentation?

mindplay-dk Β· 5y ago
v1rtl
Publish on deno.land/x registryOpenIssue

Would be cool to have "undom" published on deno.land (https://deno.land/x/undom) so it's easier to import in Deno. Setup guide

v1rtl Β· 5y ago

Recent fixes

View closed PRs β†’
bekicot
Demo: Uncaught SyntaxError: Identifier 'document' has already been declaredClosedIssue

The demo in readme is currently error

bekicot Β· 4y ago
ghost
fix serialization exampleMergedPR
ghost Β· 5y ago
ghost
basic Deno supportMergedPR

This should be enough to allow the library to be used in Deno directly through some β€œGitHub as CDN” service. (It works fine for me locally.) A next step would be to make the library available directly with the correct MIME type, without such services (through e.g. GitHub pages), or even making the repository available on .

ghost Β· 5y ago
Structured data for AI agents

Repository: developit/undom. Description: 🍩 1kb minimally viable DOM Document implementation Stars: 691, Forks: 25. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Homepage: https://npm.im/undom Topics: domdocument, html, html-document, polyfill, preact, serialization, shim. Latest release: 0.4.0 (8y ago). Open PRs: 4, open issues: 12. Last activity: 5y ago. Community health: 42%. Top contributors: developit, andyrj, bmeurer, DanielRuf, jamesbirtles, lukeed, hrldcpr.

Β·@ofershap

Replace github.com with gitshow.dev