title: innerText vs textContent - getting some errors on Firefox
body: <p>I'd getting some errors on my scripts here, in the first one I've declared a var text(); type to create a box with some text content.</p>
  
  <pre><code>var x=$('#x').text();
  </code></pre>
  
  <p>In my second .js I'm doing some handling on this var that ensure my text i'll have less char than max-length, here is:</p>
  
  <pre><code>var limitMaxLength = function(element) {
     var maxLength = $(element).data("max-length");
        if (maxLength) {
           $(element).on("keypress", function(event){
              if (event.target.innerText.length &gt; maxLength || event.keyCode === 13) {
                 event.preventDefault();
              }
        });
     }
  };
  </code></pre>
  
  <p>So I having some issues on Firefox getting this error:
  [TypeError: event.target.innerText is undefined]</p>
  
  <p>In IE, Opera, Chrome and Safari my code works fine, i'm getting error only on Firefox.
  *Sorry for my bad english.</p>