Img srcset attribut fails to decode &
Reported by
arthan...@googlemail.com,
Sep 28 2016
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 Steps to reproduce the problem: 1. Create a img tag 2. Set a src attribute with a query string (e.g.: "/abc.jpg?h=150&s=b2416d3bffa603285670dc27402d1b6a"). 3. Set a srcset attribute with a query string and an ampersand. 4. When opening the .html file the & is decoded in the src attribute but not the srcset attribute. What is the expected behavior? The $amp; in the srcset images should be decoded just like in the src attribute What went wrong? The browser uses a wrong url to request the image. Did this work before? N/A Chrome version: 53.0.2785.116 Channel: stable OS Version: OS X 10.12.0 Flash Version: Shockwave Flash 23.0 r0
,
Sep 29 2016
Could you provide an example? When trying to reproduce this I see entities being replaced as expected.
,
Sep 29 2016
In the images I attached you can see that while the & is present in the src and srcset in the page source it is only replaced in the src attribute in the dom explorer.
,
Oct 6 2016
Thank you for providing more feedback. Adding requester "fs@opera.com" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 6 2016
Thank you for the screenshot. I see that you have:
"...h=150&..."
in the 'src', but:
"...h=150&..."
in 'srcset'. So the latter would end up as "&" after entity expansion ("&" -> "&"; second "amp;" unchanged.) Looks like whatever generated the srcset did entity encoding twice? (Maybe using the value of 'src' after entity encoding as the input?)
This looks like a WontFix.
|
||||
►
Sign in to add a comment |
||||
Comment 1 by patricia...@chromium.org
, Sep 29 2016