profile-img
@[email protected] πŸ₯

@WebReflection

Web, Mobile, IoT: all JS things since 00's - opinions are my own β„’
Currently collaborating with @anacondainc to bring Web standards everywhere πŸ¦„

calendar_today08-05-2009 12:14:50

39,3K Tweets

10,3K Followers

1,2K Following

@webreflection@mastodon.social πŸ₯(@WebReflection) 's Twitter Profile Photo

is importNode any better or different than cloneNode ?

well, importNode for fragments uses a nodeType check + isShadowRoot check:
github.com/WebKit/WebKit/…

cloneNode just clones the node:
github.com/WebKit/WebKit/…

if you create nodes via template then: content.cloneNode(true) πŸ‘

account_circle