I've read the the spec of the selectionDirection attribute, and I've found a typo.
http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#dom-textarea/input-selectiondirection The spec says in the second paragraph as below. --- On setting, it must act as if the setSelectionRange() method had been called, with the current value of the selectionStart attribute as the first argument, the current value of the selectionEnd attribute as the first argument, and the new value as the third argument. --- The current value of the selectionEnd attribute is not as the first argument, but as the second argument, is it? -- Futomi Hatano <i...@html5.jp> http://www.html5.jp/ http://www.futomi.com/ http://twitter.com/futomi