Has anyone built a heading #WebComponent that automatically increments the heading level?
I remember hearing @davatron5000 mentioning this by the name spicy-h on @ben's stream Some Antics.
#Testing your #WebComponent's close button? if it removes the element from the #DOM, check `Node.isConnected` to see whether your custom element is still part of the page or not
📚 Read More: https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected
🥽 Example: https://lit.dev/playground/#gist=b0639065ab09e87708e56a6c8d2fdc2f
#unitTesting #JavaScript #js #HTML #DOM #WebComponent #Testing