/**
 * Extends the native <code>Element</code> class with additional functionality.
 * <p>This doesn&rsquo;t work for Internet Explorer, but it&rsquot;s not needed.</p>
 * @class Element
 * @author Henrik Lindqvist &lt;<a href="mailto:henrik.lindqvist@llamalab.com">henrik.lindqvist@llamalab.com</a>&gt;
 */
if (window.Element) 
(function (ep) {

/**
 * Allow for cross-browser <code>innerText</code>.
 * @property {read write String} innerText
 */
if (!ep.innerText) {
  ep.__defineGetter__('innerText', function () {
    return this.textContent;
  });
  ep.__defineSetter__('innerText', function (t) {
    this.textContent = t;
  });
}

})(window.Element.prototype);
