-
Notifications
You must be signed in to change notification settings - Fork 14
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
Sanitizing/Removing Iframe attributes properly #126
Comments
Hello! Do you have any news on this? Amp version: https://rolhdz.net/detras-de-las-canciones-erika-ender/amp/ |
Fix sanitization of the allowfullscreen, allowtransparency, frameborder, and scrolling properties on iframe elements Fixes #126
Fix sanitization of the allowfullscreen, allowtransparency, frameborder, and scrolling properties on iframe elements Fixes #126
@pankajpatel @rolxhdz I've just pushed version 0.6.1, try updating and see if that fixes your issues. |
The |
@jbhannah - I'm still facing the same issue as seen in the attached screenshot. How do I fix it? I'm running Ghost 3.37.1 |
This issue is coming form TryGhost/Ghost/issues/10796
As we can see from here: https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/validator-amp-iframe.protoascii
The iframe attribute needs proper sanitization as some attributes accept no value but their presence and some attrs allow values from [
0
,1
]scrolling
: value as 0 or 1frameborder
: value as 0 or 1allowtransparency
: presence and no valueallowfullscreen
: presence and no valueThe text was updated successfully, but these errors were encountered: