Summary: | Video elements fires another "load" event when attached to DOM | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Charles Ying <charles_ying> | ||||||
Component: | New Bugs | Assignee: | Eric Carlson <eric.carlson> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | rik, simon.fraser | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac (Intel) | ||||||||
OS: | OS X 10.5 | ||||||||
Attachments: |
|
Looks like you forgot to attach the test case. I think I attached it, it appears in the attachments as "test reduction" Created attachment 33784 [details]
proposed patch
|
Created attachment 33363 [details] test reduction When a video element not attached to the DOM is loaded first (prior to attachment), then attached, a second "load" event is fired on the video element. This manifests itself as a repeated load event in the sample code which adds the video to the DOM only after the video has finished loading. This is illustrated by commenting out the "jQuery("#container").append(video);" line from the attached reduction.