-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanitizer: Request to convert <img> to <amp-img> correctly #919
Comments
Will Work On After #864 Hi @westonruter, |
Request For Another Look Hi Koop or @westonruter, Without the AMP plugin active,
produced:
With the plugin active, that function seems to produce the same
There is a difference in the Without plugin:
With plugin:
There were similar results when I deleted the image, changed to theme to Twenty Seventeen, uploaded the image, set it as the featured image, and changed back to the ampconf theme. There wasn't much difference between the output with the plugin activated or deactivated. Theme: develop branch, with the workaround commit reverted Thanks 😄 |
I think the issue is that the the solution may just be that we need to explicitly set the |
Hi @westonruter, yes, this issue is resolved now that #937 is merged. |
As @westonruter mentioned in the 'ampconf' theme, the sanitizer doesn't look to be converting
<img>
tags to<amp-img>
correctly:width
andheight
attributes are unexpectedly differentsrcset
Here's @westonruter's temporary workaround for reference.
The text was updated successfully, but these errors were encountered: