Recommended way to handle RTL mixed with LTR languages

Wow that’s really weird:

https://www.w3.org/International/tests/repo/results/the-dir-attribute-auto