[whatwg] getSelection().modify() in vertical writing modes

Alexey Proskuryakov ap at webkit.org
Mon Jun 27 14:39:29 PDT 2011

27.06.2011, в 14:30, Ryosuke Niwa написал(а):

> FYI, I also posted this question on public-html-ig-jp at w3.org, and I got exactly one response from Koji, who was supportive of my proposal.
> Given that, I'm inclined to say that the consensus is to modify('move', 'left'/'right', 'character') should move the caret in the direction of line-left and line-right and modify('move', 'left'/'right', 'line') should move the caret in the block direction (left for backward direction and right for forward direction).  As Koji mentioned, it matches native-speaker's intuition and it matches the concept of left/right in text-align property.

I do not think that we should ignore people who are not native speakers and are writing JavaScript code that works with vertical text. For most people, left is left, and up is up. There is no reason to make it more complicated than it is already.

- WBR, Alexey Proskuryakov

More information about the whatwg mailing list