title: Iterate through text node and element node
body: <p>I used element.children to iterate through element nodes and childNodes for text node.
  How can I iterate both text node and element node?</p>
  
  <pre><code>let children = this.element.children;
  for (let i = 0; i &lt; children.length; i++) {
    // do something with children[i] element
  }
  let childrenNodes = this.element.childNodes;
  for (let i = 0; i &lt; childrenNodes.length; i++) {
    if (childrenNodes[i].nodeName == "#text") {
      // do something with childrenNodes[i] text node
    }
  }
  </code></pre>
  
  <p>Can I access to an element with childNodes?</p>