W3C home > Mailing lists > Public > public-html@w3.org > April 2012

Re: CfC: Create Media Task Force

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 16 Apr 2012 11:06:00 +1200
Message-ID: <CAOp6jLakq2=+ADnH0aB2_Wf6JZbDBsUy4bbRtRcGiB3tU8dtfQ@mail.gmail.com>
To: Charles Pritchard <chuck@jumis.com>
Cc: Adrian Bateman <adrianba@microsoft.com>, Paul Cotton <Paul.Cotton@microsoft.com>, "public-html@w3.org" <public-html@w3.org>
On Sun, Apr 15, 2012 at 9:01 AM, Charles Pritchard <chuck@jumis.com> wrote:

>  getContext() allowed people to develop unobtrusive JS shims for a a very
> out-of-the-ordinary web API.
>
> It was a huge help and all it cost us was a single method call. It's still
> helpful with the current experimental-webgl space.
>

As it happens, it would be easier to develop reliable shims if we had used
custom attributes instead of getContext(). It's easy for multiple shim
scripts to each add their own custom getter. It's more fragile to have
multiple shim scripts all trying to override getContext().

Rob
-- 
“You have heard that it was said, ‘Love your neighbor and hate your enemy.’
But I tell you, love your enemies and pray for those who persecute you,
that you may be children of your Father in heaven. ... If you love those
who love you, what reward will you get? Are not even the tax collectors
doing that? And if you greet only your own people, what are you doing more
than others?" [Matthew 5:43-47]
Received on Sunday, 15 April 2012 23:06:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:48 GMT