Allow for AMP ad anchors to target _top
Short description of your issue:
Anchor links within an iframe that lead to itunes do not navigate on Safari iOS 9 however AMP validator does not allow target _top.
How do we reproduce the issue?
- browser is safari on ios 9
- there is a link that leads to itunes
- link is in iframe
- link has target=_blank
- click on link does not navigate
What browsers are affected?
Safari iOS 9
Which AMP version is affected?
All
Proposed Fix
Allow for data-target=_top attribute on anchors within amp-ad which will have their target changed to _top via AMP runtime.
/cc @cramforce
@keithwrightbos We're tracking this in b/32003819. Could you take a look and see if this is a separate issue?
Change within validator is ideal and appears to be imminent so closing.
Just to be sure I understand, this is a runtime-only change, not a validator change, correct?
@Gregable We don't currently limit target=_top, right? I checked, but want to make sure. If we did not allow it, we should allow it now.
For <a> tags and a few other places, we allow only target=_self and target=_blank. The original thread mentions data-target, which we do not constrain.
I see. So, we'd like to extend validity to include target=_top.
On Tue, Oct 11, 2016 at 12:37 PM, Greg Grothaus [email protected] wrote:
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ampproject/amphtml/issues/5324#issuecomment-253021587, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFeT376ppzAEJ6zD6LBeUmJ8UFyeKUKks5qy-VhgaJpZM4KKnsN .
OK
Fixed. Not live yet.
What's ETA of it being live?
Next week.