#117 ✓resolved
nickg

setting Image.src explodes

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

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....

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

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

a javascript browser environment

People watching this ticket

Pages