Re:PSA: Add dir=“auto” to your inputs and textareas
by amluto on Wednesday August 23, 2023 @01:10PM
(#37239083)
I would argue that it’s failing and working as designed.
Perhaps a syntax highlighter could learn to insert “first strong isolate” and “pop directional isolate” and to also enforce that content leaves the stack alone?
Re:PSA: Add dir=“auto” to your inputs and textareas
by dotancohen on Wednesday August 23, 2023 @04:58PM
(#37241789)
You are correct. I explain this in depth here:
If you want to force mixed-direction content to render correctly, you often need to insert bidirectional control characters to specify where a certain directional run begins/ends. That doesn't make sense to add in this case, though, because it would mess up the rendering in the actual input example.