-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
U+FEFF as a ZWNBSP character is deprecated #2597
Comments
I don't know much about this but I'm sure we'd welcome a PR if this is the right character to be using. |
I don't know how quickly we should jump on this. If you scroll to the top of the referenced Technical Report, the Status part says:
I was unable to locate a current, published version of this particular report. On the other hand, maybe this deprecation is repeated in some more general Unicode Report? |
I think the idea in #1971 about implementing this via |
Facing the same issue, What is the solution? |
You should see if you can convert U+FEFF characters into |
This has recently started after upgrading to Chrome 105 |
I also have the issue when I updated to Chrome 105. Any ideas how to fix it ? @milapshah15 |
The U+FEFF character introduces a bug with Chrome and the JAWS screen reader also; announcing empty contenteditable fields as being non-empty. @ianstormtaylor why is the character added in the first place? Can it be removed? Looking at the links at the top of this bug report, it seems it's a deliberate thing to add spacing at the start of inline blocks? |
See: https://www.w3.org/TR/unicode-xml/#BOM
I'm pretty sure that Slate is using the U+FEFF character in a way that is now deprecated in Unicode 3.2. I see that Slate switched from U+200B to using this character to fix this issue: #2231. It's recommended to use U+2060 instead as a zero-width non-breaking space character. I think that issue would not be a problem if Slate used U+2060 instead.
I discovered this issue when sanitizing the HTML in my backend. U+FEFF is stripped from the content, but U+2060 is kept.
The text was updated successfully, but these errors were encountered: