Skip to content
Browse files

Add picImg as a sibling of the source elements

  • Loading branch information...
1 parent 4315559 commit a962f17b5f783db8ed7b4ce27d78bcc9ff8f75da @laurens committed Apr 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 picturefill.js
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" );

0 comments on commit a962f17

Please sign in to comment.
Something went wrong with that request. Please try again.