The createTextNode( ) method creates a Text Node with the specified text. Tip: Use the createElement( ) method to create an Element Node with the specified name. Tip: After the Text Node is created, use the element. appendChild( ) or element.
insertBefore( ) method to append it to an element. The following is a guest post by Rob Dodson Rob and I were going back and forth in CodePen support getting Polymer ( a web components polyfill, kinda) working on a demo of his. We did get it working, and things kind of evolved into this article.