Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Add support for wrapping image in anchor element (different solution) #63

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion picturefill.js
Expand Up @@ -31,7 +31,7 @@
if( !picImg ){
picImg = w.document.createElement( "img" );
picImg.alt = ps[ i ].getAttribute( "data-alt" );
ps[ i ].appendChild( picImg );
sources[ 0 ].parentNode.appendChild( picImg );
}

picImg.src = matches.pop().getAttribute( "data-src" );
Expand Down