Monday, October 04, 2004

InnerHTML Model - IE Emu (WebFX)

InnerHTML Model - IE Emu (WebFX): "var _emptyTags = { 'IMG': true, 'BR': true, 'INPUT': true, 'META': true, 'LINK': true, 'PARAM': true, 'HR': true }; HTMLElement.prototype.__defineGetter__('outerHTML', function () { var attrs = this.attributes; var str = '<' this.tagName; for (var i = 0; i < attrs.length; i ) str = ' ' attrs[i].name '=\'' attrs[i].value '\''; if (_emptyTags[this.tagName]) return str '>'; return str '>' this.innerHTML ''; });"

0 Comments:

Post a Comment

<< Home