W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2010

Re: TextEvent data property

From: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Wed, 13 Jan 2010 11:15:10 +0200
Message-ID: <4B4D8F1E.10301@helsinki.fi>
To: Doug Schepers <schepers@w3.org>
CC: Sean Hogan <shogun70@westnet.com.au>, DOM public list <www-dom@w3.org>, jeresig@gmail.com
I wonder if it is too late to ask
jQuery to change its API.
It should, IMO, use something like
event.jqueryData (I know, looks terrible)

Btw, as far as I know, webkit's TextEvents aren't
quite what the DOM 3 Events draft specifies.


-Olli

On 1/13/10 2:50 AM, Doug Schepers wrote:
> Hi, Sean-
>
> Sean Hogan wrote (on 1/12/10 7:19 PM):
>>
>> It just occured to me that the data property of TextEvent clashes with
>> jQuery Events, which uses the data property for " optional data passed
>> to jQuery.fn.bind when the current executing handler was bound."
>> See
>> http://api.jquery.com/category/events/event-object/
>> and
>> http://api.jquery.com/event.data/
>
> Thanks for alerting us to this unfortunate design. Without looking too
> deeply at it yet, this does seem problematic.
>
>
>> TextEvent.data (and there textInput events) support in jQuery will be
>> confusing (at minimum).
>> To my knowledge only Webkit supports TextEvents and I can't imagine many
>> developers actually using them yet, so it might not break anything to
>> change it now.
>
> There may be other (non-browser) implementations using it. I'd like to
> hear from them.
>
>
>> Perhaps "text" or "textData" would be an acceptable name.
>
> "value" might also serve.
>
> We'll look into it and talk about it at the telcon.
>
> Regards-
> -Doug Schepers
> W3C Team Contact, SVG and WebApps WGs
>
>
Received on Wednesday, 13 January 2010 09:15:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:04 GMT