NotIeDomExtensions.js 2.3 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. Node.prototype.__defineGetter__("text",function(){return _7hn._fkl(this);});Node.prototype.__defineSetter__("text",function(s){return _7hn._qll(this, s);});Node.prototype.selectSingleNode=function(_zxm){return _7hn._ij8(this, _zxm);};Node.prototype.selectNodes=function(_zxm){return _7hn._x5g(this, _zxm);};XMLDocument.prototype._5l2=XMLDocument.prototype.createElement;XMLDocument.prototype.createElement=function(_ick){return _q9g._drc(this, _ick);};Element.prototype._gs1=Element.prototype.removeAttribute;Element.prototype.removeAttribute=function(_hcn){if(this instanceof HTMLElement){this._gs1(_hcn);return;}_9nl._qt9(this, _hcn);};if(!window["requestAnimationFrame"]){window.requestAnimationFrame=(window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame);};if(!window["cancelAnimationFrame"]){window.cancelAnimationFrame=(window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame);};HTMLElement.prototype.__defineGetter__("xml",function(){debugger;throw 'Don\'t use "xml" on an HTML element';});HTMLElement.prototype.__defineGetter__("text",function(){debugger;throw 'Don\'t use "text" on an HTML element';});HTMLElement.prototype.__defineSetter__("text",function(s){debugger;throw 'Don\'t use "text" on an HTML element';});HTMLElement.prototype.selectSingleNode=function(_zxm){debugger;throw 'Don\'t use "selectSingleNode" on an HTML element';};HTMLElement.prototype.selectNodes=function(_zxm){debugger;throw 'Don\'t use "selectNodes" on an HTML element';};Node.prototype.__defineGetter__("innerHTML",function(){debugger;throw 'Don\'t use "innerHTML" on an XML node';});Node.prototype.__defineSetter__("innerHTML",function(s){debugger;throw 'Don\'t use "innerHTML" on an XML node';});Node.prototype.__defineGetter__("outerHTML",function(){debugger;throw 'Don\'t use "outerHTML" on an XML node';});Node.prototype.__defineSetter__("outerHTML",function(s){debugger;throw 'Don\'t use "outerHTML" on an XML node';});Node.prototype.__defineGetter__("innerText",function(){debugger;throw 'Don\'t use "innerText" on an XML node';});Node.prototype.__defineSetter__("innerText",function(s){debugger;throw 'Don\'t use "innerText" on an XML node';});