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

Use regex to extract iframe width and height #9770

Closed
wants to merge 3 commits into from

Conversation

notnownikki
Copy link
Member

@notnownikki notnownikki commented Sep 10, 2018

Description

Fix for concern highlighted in #9500 (comment)

How has this been tested?

Embed a tweet, embed a youtube video, and check the video has an aspect ratio CSS class applied, and the tweet does not.

Screenshots

Types of changes

Bug fix (non-breaking change which fixes an issue)

@aduth aduth modified the milestones: 3.9, 3.8 Sep 11, 2018
@aduth aduth modified the milestones: 3.8, 3.9 Sep 12, 2018
@aduth
Copy link
Member

aduth commented Sep 12, 2018

Thoughts on suggestion at #9500 (comment) to consider document.implementation.createHTMLDocument instead?

@notnownikki
Copy link
Member Author

@aduth I was literally opening a PR with that approach when your comment arrived in my inbox :)

#9827

I think I prefer the HTML Document approach, it's a much smaller diff and more readable.

@aduth
Copy link
Member

aduth commented Sep 12, 2018

Superseded by #9827.

@aduth aduth closed this Sep 12, 2018
@aduth aduth deleted the fix/embed-iframe-size-script-execution branch September 12, 2018 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants