<img> and <link> event handling improvements
Reported by nickg | April 14th, 2010 @ 03:43 PM
Just filing this in case someone is making release notes.
img.src = XXX and link.href=XXX handling is spotty and does not give the end-user(application) control or access to the events (in case you actually do want to load in the images or css files). The rules are non-obvious (I tested every case on real browsers) and slightly tricky to make sure events are not double fired.
This patch provides two new (optional) apis
envjs.loadImage(node, src)
envjs.loadLink(node, href)
if they exists, they are called. Returning true, will file the load event, false the error event.
the commit will be in shortly. With full unit tests of course.
--nickg
Comments and changes to this ticket
-
nickg April 14th, 2010 @ 03:58 PM
- State changed from new to resolved
ok it's in.
should be 100% invisible/compatible/backwards-compatible unless you are actually using load events
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.
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