undom icon indicating copy to clipboard operation
undom copied to clipboard

Outline goals and/or non-goals

Open jfsiii opened this issue 7 years ago • 3 comments

document.createElement('foo') doesn't exist in a vacuum. Outline what is, and is not, in scope. This would clarify what's meant by minimally viable and save a lot of back-and-forth in issues/PRs.

If a list of criteria/props isn't desired, a paragraph or two on why this was created the purpose it serves would be educational.

e.g. should this work with d3, jQuery, cheerio, etc? Which DOM props/attrs are supported and why? Same for unsupported props/attrs (e.g. style, on*, etc).

jfsiii avatar Jul 10 '16 00:07 jfsiii

@jfsiii good idea. My initial use-case was to serve the very basic needs of Preact, and I published this because there are other libraries out there that interface with the DOM in a similarly minimal way.

Events are an interesting case, since I think that would be useful for people looking to run tests on top of a minimal DOM implementation.

I think in terms of intended scope, I just want to avoid bundling a parser and even avoid building in a serliazer. Everything else would be fair game as long as it stays super small. I'm looking at dropping the constants since they add little value.

developit avatar Jul 10 '16 03:07 developit

Thanks. Size is a great constraint. Especially if it's possible for others to extend/decorate with their desired features.

jfsiii avatar Jul 10 '16 15:07 jfsiii

Exactly. That'd be the goal with HTML parsing / serialization - allow them to be added, but don't ship them by default.

developit avatar Jul 10 '16 18:07 developit