We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I add an img with spaces as the src like so:
img
src
<img src=" " width="100" height="100">
Then this gets output as:
<amp-img src="" width="100" height="100" sizes="(min-width: 100px) 100px, 100vw" class="amp-wp-enforced-sizes"></amp-img>
AMP complains about this:
Missing URL for attribute 'src' in tag 'amp-img'.
If an img is added with an empty src then the amp-img gets removed entirely. That should also be the behavior when src contains just whitespace.
amp-img
Support topic: https://wordpress.org/support/topic/google-console-detected-amp-error/
The text was updated successfully, but these errors were encountered:
Sanotize img tags when src attribute contains only spaces. Fixes issue …
b3a0bef
…#1030
Fix #1030
2c0a727
d18105b
a75f27d
amedina
No branches or pull requests
If I add an
img
with spaces as thesrc
like so:Then this gets output as:
AMP complains about this:
If an
img
is added with an emptysrc
then theamp-img
gets removed entirely. That should also be the behavior whensrc
contains just whitespace.Support topic: https://wordpress.org/support/topic/google-console-detected-amp-error/
The text was updated successfully, but these errors were encountered: