Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

setting Image.src explodes

#117

image.js

    set src(value){
        this.setAttribute('src', value);

        var event = document.createEvent();
        event.initEvent("load");
        this.dispatchEvent( event, false );
    },

The document.createEvent(); explodes since you need an argument (e.g. 'Events').

Also according to HTML5 spec, if '' is passed in as source, an error event is suppose to happen.

Patch coming....

Reported by nickg · March 17th, 2010 @ 04:42 PM

State: resolved
Milestone: none
Assigned to: nickg nickg

Activity

  1. nickg
  2. nickg
    nickg
    • Tag set to htmlimageelement
    • Assigned user changed from Thatcher to nickg

    March 21st, 2010 @ 12:05 PM

  3. nickg
    nickg
    • State changed from new to resolved

    Likely more work will be needed, but for the time being this is resolved with:

    http://github.com/thatcher/env-js/commit/988037d4ab020ae41a87f0885d...

    March 21st, 2010 @ 12:17 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.