That's cool, but can whatever magic customElements.define does to make new work be replicated in node?
-
-
Replying to @pemrouz @slightlylate and
You'd have to implement https://html.spec.whatwg.org/multipage/custom-elements.html#dom-customelementregistry-define … and everything it depends on — but why do that?
2 replies 0 retweets 0 likes -
Replying to @jaffathecake @slightlylate and
False dilemma. Why is that the only option? How about not making missing tagName a roadblock?
1 reply 0 retweets 0 likes -
Replying to @pemrouz @slightlylate and
*scratches head* "false argument" I guess? The DOM is about more than .tagName
1 reply 0 retweets 1 like -
Replying to @jaffathecake @slightlylate and
Thanks, I still don't understand exactly, but imagine there are good reasons to disallow this. Ideally define could enhance not be a blocker
1 reply 0 retweets 0 likes -
Replying to @pemrouz @slightlylate and
I don't really know what this means. To summarise: you want to extend something but not have a dependency on it — how does that work?
1 reply 0 retweets 0 likes -
Replying to @jaffathecake @slightlylate and
A design that _allows_ you to not depend on the real implementation. 1/
1 reply 0 retweets 1 like -
Replying to @pemrouz @jaffathecake and
You don't spin up real MySQL instances to test your services. Should be able to component test without spinning up real DOM. 2/
2 replies 0 retweets 1 like -
Replying to @pemrouz @jaffathecake and
Currently, there's no way to even fake the DOM/define! Define is doing black magic. 3/
3 replies 0 retweets 1 like -
Replying to @pemrouz @jaffathecake and
This is a good article: http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/ … 4/4
1 reply 0 retweets 1 like
Note the date. We fought for classes and intrinsic subclassing to ES6 to bring much of this out of magic and into explainable JS...
-
-
Replying to @slightlylate @pemrouz and
That was a long, hard slog. The result is a DOM that is much saner and resorts to magic much less often.
1 reply 0 retweets 1 like -
Replying to @slightlylate @jaffathecake and
Appreciate all your efforts, unf twitter doesn't leave much space to ack positives. Hope you're not worn out tho, web still needs pushing :)
1 reply 0 retweets 0 likes - 7 more replies
New conversation -
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.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.