Re: hasFeature()

On Tue, Sep 16, 2014 at 11:11 AM, Anne van Kesteren <annevk@annevk.nl> wrote:
> On Tue, Sep 16, 2014 at 8:04 PM, Stephen Chenney <schenney@chromium.org> wrote:
>> I took another look at the usage data now that it has been in Chrome for a
>> while.
>>
>> hasFeature appears in just over 4% of page views (higher than the initial
>> estimates) but it returns false only 0.0036% of the time.
>>
>> It seems to me that it is entirely safe to remove this from the spec and
>> have it always return true during some deprecation period.
>
> https://dom.spec.whatwg.org/#dom-domimplementation-hasfeature still
> requires that. Hopefully the change sticks this time and we can call
> it a day :-)

That's definitely within Blink's "acceptable to kill" range, so it
seems likely to me that it'll be okay to just have it as a useless
always-returning-true wart.

~TJ

Received on Tuesday, 16 September 2014 18:23:00 UTC