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

Fix crashes with Microsoft Translate on Microsoft Edge #16525

Merged

Conversation

ClearlyClaire
Copy link
Contributor

Fixes #16509

Microsoft Edge with translation enabled rewrites the DOM in ways that confuse react and prevent it from working properly. Wrapping the offending parts in a span avoids this issue.

facebook/react#11538 (comment) has been helpful in identifying which elements caused issues

Fixes mastodon#16509

Microsoft Edge with translation enabled rewrites the DOM in ways that confuse
react and prevent it from working properly. Wrapping the offending parts in
a span avoids this issue.
@Gargron Gargron merged commit e9659ae into mastodon:main Jul 23, 2021
Gargron pushed a commit that referenced this pull request Nov 5, 2021
Fixes #16509

Microsoft Edge with translation enabled rewrites the DOM in ways that confuse
react and prevent it from working properly. Wrapping the offending parts in
a span avoids this issue.
kadoshita pushed a commit to kadoshita/mastodon that referenced this pull request Nov 6, 2021
Fixes mastodon#16509

Microsoft Edge with translation enabled rewrites the DOM in ways that confuse
react and prevent it from working properly. Wrapping the offending parts in
a span avoids this issue.
kadoshita pushed a commit to kadoshita/mastodon that referenced this pull request Nov 7, 2021
Fixes mastodon#16509

Microsoft Edge with translation enabled rewrites the DOM in ways that confuse
react and prevent it from working properly. Wrapping the offending parts in
a span avoids this issue.
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.

Not work with translator in Edge
2 participants