W3C home > Mailing lists > Public > public-houdini@w3.org > February 2015

Re: @supports-like feature on <script> tag

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Fri, 6 Feb 2015 09:56:19 +1100
Message-ID: <CAMdq698OYA-wCMwb-Bq2yJQv9uep1at63DkTs9TpUFqT-pUNvA@mail.gmail.com>
To: public-houdini@w3.org
It probably can be solved with ECMAScript 6 modules feature, which supports
importing modules dynamically. But I guess it is still preferable to have
similar feature be supported natively.

- Xidorn

On Fri, Feb 6, 2015 at 9:44 AM, Xidorn Quan <quanxunzhen@gmail.com> wrote:

> As far as we are planning to provide low-level APIs so that libraries can
> do more polyfill before a feature gets standardized, I propose that we add
> an attribute to <script> tag similar to @supports rule in CSS, which
> enables the UA to avoid loading modules which try to polyfill features it
> supports.
> However, the @supports rule provides a positive matching, while it'd be
> better to have a negative matching syntax here. In addition, it probably
> should not be limited to CSS features.
> Any ideas?
> - Xidorn
Received on Thursday, 5 February 2015 22:57:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 15:47:05 UTC