Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add a polyfill for the normalize function to support older browsers #13157
Describe the bug
Pasting NFD text will break the internal search in WP and can break the search on the website (like in Firefox), spellcheck, and the display (showing the character + combining character side by side and not overlaying it, Firefox is failing here for example).
And it can happen all the time that apps output NFD text and not NFC, like the W3C is recommending.
(This also affects other areas: Pasting the text in the title would break the transliteratin from "ü" to "ue" in the slug for German sites for example.
Desktop (please complete the following information):
Sometimes people do not have the latest OS and therefore not the latest browser version!
If you need more information about NFC and how non-NFC is breaking WP, please ask specific question and I am happily try to answer them. Thank you very much!