javascript - Safari image.onload event not firing with Blob url -


i trying demo mdn working in safari. works quite nicely in chrome , ff.

specifically, onload callback of image not appear firing in safari 7.0.3. here's jsfiddle demonstrates behavior (run dev console in browser open):

http://jsfiddle.net/qrohlf/hgfz4/1/

i think bug in safari - ideas on how work around it?

in jsfiddle example, onload event not fired because error has occurred. try attach onerror handler , see fired.

unfortunately, error object doesn't tell wrong.

indeed problem blob's type doesn't expect charset part. try removing ;charset=utf-8 , work.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -