title: IE9 throws DOM Exception: INVALID_CHARACTER_ERR (5)
body: <p>On the script below, IE9 is throwing an error:</p>
  
  <p>SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5) 
  mootools-1.2.1-core-yc.js, line 118 character 1</p>
  
  <pre><code>Document.implement({
      newElement: function (A, B) {
          if (Browser.Engine.trident &amp;&amp; B) {
              ["name", "type", "checked"].each(function (C) {
                  if (!B[C]) {
                      return;
                  }
                  A += " " + C + '="' + B[C] + '"';
                  if (C != "checked") {
                      delete B[C];
                  }
              });
              A = "&lt;" + A + "&gt;";
          }
          return $.element(this.createElement(A)).set(B); //THIS IS LINE 118
      },
      newTextNode: function (A) {
          return this.createTextNode(A);
      },
      getDocument: function () {
          return this;
      },
      getWindow: function () {
          return this.window;
      }
  });
  </code></pre>
  
  <p>This snippet is part of the Mootools js library that the developer used on the site. Is there a workaround to fix the error for IE?</p>