W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

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

From: Alexey Proskuryakov <ap@webkit.org>
Date: Mon, 27 Jun 2011 14:50:05 -0700
Message-ID: <C69B78B3-3C65-4754-8FE1-C6C1524AF5C0@webkit.org>

27.06.2011, ? 14:42, Ryosuke Niwa ???????(?):

> 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.
> 
> Right. But if we changed the semantics of modify('extend', 'right', 'character') to move between lines, then code that tries to select the first character after the caret will fail.  They have to explicitly detect the writing mode and change the script.

Is there is a significant amount of HTML editing JavaScript code that would just work with vertical text if not for this one detail? In that case, it might be appropriate to utilize such tricks indeed.

Otherwise, asking authors to make the change from "right" to "forward" appears like a very appropriate thing to ask for, among other things necessary to support vertical text.

- WBR, Alexey Proskuryakov
Received on Monday, 27 June 2011 14:50:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC