This project is archived and is in readonly mode.

#409 ✓ invalid
Daniel Steigerwald

new Element forbidden for IE!!

Reported by Daniel Steigerwald | October 7th, 2008 @ 03:04 PM | in 2.0 (closed)

To have mootools compatible, when more documents are involved, they are severals catch in current master.

Explanation: if element is created by new Element, its .ownerDocument is top document. If such element is injected in to another document, IE will alert some ugly error.

Bugs and fixed: iframe = new Element(iframe || 'iframe', props); IFrame should have additional option: document, and iframe creating should be:


iframe = this.options.document.newElement(iframe || 'iframe', props);

element set html var first = new Element('div'); should be:


var first = this.getDocument.newElement('div');

Swiff, RequestHTML, Tips and Assets - also should have option document

Slide: this.wrapper = wrapper || new Element('div', { should be:


this.wrapper = wrapper || this.element.getDocument().newElement('div', {

Sortables should also retrieve document from lists.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages