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

[whatwg] typo in the spec of the selectionDirection attribute

From: Futomi Hatano <info@html5.jp>
Date: Mon, 13 Jun 2011 15:28:03 +0900
Message-ID: <20110613152802.FBFE.C8DE7135@html5.jp>
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 <info at html5.jp>
http://www.html5.jp/
http://www.futomi.com/
http://twitter.com/futomi
Received on Sunday, 12 June 2011 23:28:03 UTC

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