@bendrucker how do you create an idempotent window context? Do you use Raynos' thing? Want to access window.HTMLElement.prototype on server
-
-
Replying to @yoshuawuyts
@yoshuawuyts yeah I use global which relies on min-document for the (partial) DOM shim1 reply 0 retweets 1 like -
-
Replying to @yoshuawuyts
@bendrucker ah crap window.HTMLElement.prototype isn't in there. Means I'll need to use jsdom; but don't wanna use it in browser. hmmm1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts You could expose https://github.com/Raynos/min-document/blob/master/dom-element.js …, perhaps even do a pkg so you can `require(‘html-element’)`1 reply 0 retweets 0 likes -
Replying to @bendrucker
@bendrucker ohey, so if I do DOMElement('button') I should get the button prototype right? This could solve my issues! :D2 replies 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts min-document is enough for me to run vdom -> dom unit tests in Node and when it hasn’t I just send PRs for needed methods1 reply 0 retweets 1 like
@bendrucker cool! Building a webcomponent -> vdom widget transform atm ^_^
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.