W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] typo in the spec of the selectionDirection attribute

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 10 Jan 2012 22:44:44 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1201102244320.14154@ps20323.dreamhostps.com>
On Mon, 13 Jun 2011, Futomi Hatano wrote:
>
> 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?

Indeed. This has been fixed. Thanks.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 10 January 2012 14:44:44 UTC

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