It seems all the content for an img element is treated like an image... We cannot select the elements added to img element.
Created attachment 157141 [details] Patch
Comment on attachment 157141 [details] Patch Clearing flags on attachment: 157141 Committed r125397: <http://trac.webkit.org/changeset/125397>
All reviewed patches have been landed. Closing bug.