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

Arabic-script letters not connected across html tags #391

Open
pverkind opened this issue Sep 2, 2021 · 0 comments
Open

Arabic-script letters not connected across html tags #391

pverkind opened this issue Sep 2, 2021 · 0 comments

Comments

@pverkind
Copy link

pverkind commented Sep 2, 2021

Use case:

Some Arabic-script letters are connected to the next letter. In HTML code in the browser, these connections are made automatically, even when an HTML tag is written between two letters; but in XML (and thus in SVG, and all image formats dom-to-image derives from SVG) the connection has to
be done explicitly by adding the Unicode character (U+200D ZERO WIDTH JOINER, HTML code ‍) on either side of the HTML tag.

See the different behavior in this jsfiddle

This problem is only observed in Chrome and Edge, not in Firefox.

Expected behavior

Arabic letters (apart from a few exceptions) should be connected, even across HTML tags

Actual behavior (stack traces, console logs etc)

HTML tags break the connections between letters

Library version

Browsers

  • [ V ] Chrome 49+
  • [ X ] Firefox 45+
  • [ X ] Edge 96+
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

No branches or pull requests

1 participant