in partnership with mediatemple

Ticket #993 (closed defect: invalid)

Opened 2 weeks ago

Last modified 2 weeks ago

innerHTML Firefox 1.0.6 Exception Timing

Reported by: Texec Owned by:
Type: defect Priority: critical
Milestone: Mootools version 1.2 Component: Core
Keywords: firefox, exception, innerHTML, svn, 1515 Cc:

Description

Firefox 1.0.6 throws an exception if Element.Properties.html is called.

Code

var link = new Element ( 'a', {
    'html': '<span>Bla</span>'
} ) . inject ( box ) 

Lines

Element.Properties.html = {set: function(){
        return this.innerHTML = Array.flatten(arguments).join('');
}};

Exception

Fehler: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLElement.innerHTML]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://beta.webkassel.de/javascript/mootools.js :: anonymous :: line 1723"  data: no]
Quelldatei: .../mootools.js
Zeile: 1723

It's a timing error, the follwowing code runs:

( function ( ) {
    link . set ( 'html', '<span>Schließene</span' );
} ) . delay ( 250, this );

Perhaps, we should add a delay for Firefox < 1.5.

Change History

Changed 2 weeks ago by kamicane

  • status changed from new to closed
  • resolution set to invalid

Firefox 1 is not a supported browser.

Note: See TracTickets for help on using tickets.