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 โ†’
GulgDev
Is this project still maintained?OpenIssue

This is a great library, and the only one I could find that stays lightweight while implementing basic DOM APIs. However, it's missing some features (like , , etc.) and the PRs don't seem to be reviewed.

GulgDev ยท 1mo ago
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

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
feross
Does this need to be updated for Preact X?ClosedIssue

I quickly tried updating to the Preact X () and found that an empty DOM was being rendered. I haven't had time to dig into it further, but my guess is that the shape changes in Preact X have something to do with it, and this package will need to be updated. Is that right?

feross ยท 6y 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: 13. Last activity: 5y ago. Community health: 42%. Top contributors: developit, andyrj, bmeurer, DanielRuf, jamesbirtles, lukeed, hrldcpr.

ยท@ofershap

Replace github.com with gitshow.dev