# Source element does not populate srcset attribute

**URL:** <https://forum.pinegrow.com/t/source-element-does-not-populate-srcset-attribute/7530>\
**Category:** Bug Reports\
**Created:** [December 27, 2022, 2:40am UTC](https://forum.pinegrow.com/t/source-element-does-not-populate-srcset-attribute/7530 "2022-12-27T02:40:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [December 27, 2022, 2:40am UTC](https://forum.pinegrow.com/t/source-element-does-not-populate-srcset-attribute/7530/1 "2022-12-27T02:40:28Z")

</div>

When trying to set the `srcset` attribute of a `<source>` element, nothing happens. This is on Pinegrow 7.0.4 desktop and 1.0.4 Plugin. I haven’t tested other versions, but I know this has worked in the past. Setting the srcset attribute manually in the code editor works as expected.

[  
Pinegrow: Source element does not populate srcset attribute - Watch Video  
  ![](https://cdn.loom.com/sessions/thumbnails/5940c7a3b8984351925ac9d67842912e-with-play.gif)](https://www.loom.com/share/5940c7a3b8984351925ac9d67842912e)

Also, on a side note, when I’m on a picture element and use “insert into selected” and choose “source” it adds the element below the img element, not above it as you should [structure a “picture” element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture). Of course, it makes sense to add it to the bottom from a Pinegrow perspective, but I thought I’d point it out since picture is slightly unusual.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/e/ed7faf3028dda94a98effe1940a9da36ca35ad91.png)

---

<div class="post-metadata">

**Author:** ![adamslowe](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/adamslowe/32/4590_2.png) [@adamslowe](https://forum.pinegrow.com/u/adamslowe)\
**Post date:** [December 29, 2022, 1:12am UTC](https://forum.pinegrow.com/t/source-element-does-not-populate-srcset-attribute/7530/2 "2022-12-29T01:12:43Z")

</div>

Tested and working in 7.05. Thanks again for the quick fixes!

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [December 29, 2022, 5:22am UTC](https://forum.pinegrow.com/t/source-element-does-not-populate-srcset-attribute/7530/3 "2022-12-29T05:22:48Z")

</div>


