Skip to content

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

Closed
wants to merge 1 commit into from
+1 −1
View
2 picturefill.js
@@ -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" );
Something went wrong with that request. Please try again.