title: this.parentNode not working inside a dom
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>getSelection = () =&gt; {
    console.log("this", this); //valid but empty json
    console.log("this.parentNode", this.parentNode); //&lt;=undefined
  }
  document.querySelector('i.edit').addEventListener('click', getSelection, false);</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"&gt;
  &lt;div class="control-group"&gt;
    &lt;label for="name" class="control-label"&gt;
            &lt;p class="text-info"&gt;Alex&lt;i class="icon-star"&gt;&lt;/i&gt; &lt;/p&gt;
          &lt;/label&gt;
    &lt;input type="text" class="edit-input" /&gt;
    &lt;i class="fa fa-pencil edit" aria-hidden="true"&gt;&lt;/i&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>