I have an issue where the src attribute suddenly is missing from img tags when using the built in Responsive Image in SXA 1.9 on Sitecore 9.2. However the alt, srcset and sizes attribute works as expected.
Debugging the code shows the src attribute being added to the HtmlImage in CreateResponsiveImage in the RenderVariantField pipeline.
Creating a clone of the Pipeline allows me to add other attributes to the HtmlImage and they also get rendered without a problem.
That makes me believe that there is something removing the src tag later on in the rendering of the page, but I can't figure out what. Any ideas?
Edit: Issue has been reproduced in a blank Sitecore environment. It happens when a Responsive Image is added as a child to a Section in a Rendering Variant. Then the src attribute is missing. Pictured below is two responsive images, one of which is wrapped in a Section.