srcset value missing space when converting URLs to absolute paths
jasonbarry opened this issue · comments
Jason Barry commented
<source media="(max-width: 1068px)" srcset="/newsroom/images/product/imac/standard/Apple_imac-magickeyboardnum-magicmouse2-macos-wallpaper_08042020_big.jpg.medium.jpg, /newsroom/images/product/imac/standard/Apple_imac-magickeyboardnum-magicmouse2-macos-wallpaper_08042020_big.jpg.medium_2x.jpg 2x" />
gets rebuilt as
<source media="(max-width: 1068px)" srcset="https://www.apple.com/newsroom/images/product/imac/standard/Apple_imac-magickeyboardnum-magicmouse2-macos-wallpaper_08042020_big.jpg.medium.jpg,https://www.apple.com/newsroom/images/product/imac/standard/Apple_imac-magickeyboardnum-magicmouse2-macos-wallpaper_08042020_big.jpg.medium_2x.jpg 2x" />
(notice the missing space after the comma ,
). This is causing Chrome to think that the value is one URL when it really is two, causing the image to not load properly.