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

@supports-like feature on <script> tag

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Fri, 6 Feb 2015 09:44:11 +1100
Message-ID: <CAMdq69-zb0iGbiXEgH+9ugRcd33KBsj74APGPXcgyHZiPT6orw@mail.gmail.com>
To: public-houdini@w3.org
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:45:22 UTC

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