Skip to content
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

🐛 propagate title attribute in amp-iframe #27037

Merged
merged 17 commits into from
Mar 6, 2020
Prev Previous commit
Next Next commit
retrigger travis pt 3
  • Loading branch information
Max Lever committed Mar 3, 2020
commit a238d7f444a77a089c8c34f6364d16b6da50cfa9
2 changes: 1 addition & 1 deletion extensions/amp-iframe/0.1/amp-iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ export class AmpIframe extends AMP.BaseElement {
}
}
if (this.iframe_ && mutations['title']) {
// only propagating title attr because propagating all causes e2e error:
// only propagating title because propagating all causes e2e error:
// See <https://travis-ci.org/ampproject/amphtml/jobs/657440421>
this.propagateAttributes(['title'], this.iframe_);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would ideally propagate all ATTRIBUTES_TO_PROPAGATE, but this was causing an e2e test error when I tried that, so only propagating title on mutate.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A comment here indicating why only title is propagated would be nice.

}
Expand Down