mirror of
https://github.com/Modernizr/Modernizr.git
synced 2026-01-09 15:47:55 -05:00
Cleanup property tags (#2542)
* Add TODO * Update changelog * Fix property tags
This commit is contained in:
910
CHANGELOG.md
910
CHANGELOG.md
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
/*!
|
||||
{
|
||||
"name": "ES7 Rest destructuring",
|
||||
"property": [ "restdestructuringarray", "restdestructuringobject" ],
|
||||
"property": ["restdestructuringarray", "restdestructuringobject"],
|
||||
"caniuse" : "destructuring%20assignment",
|
||||
"notes": [{
|
||||
"name": "official ECMAScript 7 Destructuring Assignment draft specification",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*!
|
||||
{
|
||||
"name": "Proxy Object",
|
||||
"property": "Proxy",
|
||||
"property": "proxy",
|
||||
"caniuse": "proxy",
|
||||
"authors": ["Brock Beaudry"],
|
||||
"notes": [{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*!
|
||||
{
|
||||
"name": "Text Encoding/Decoding",
|
||||
"property": [ "textencoder", "textdecoder" ],
|
||||
"property": ["textencoder", "textdecoder"],
|
||||
"caniuse" : "textencoder",
|
||||
"notes": [{
|
||||
"name": "MDN TextEncoder Doc",
|
||||
@@ -14,6 +14,6 @@
|
||||
}
|
||||
!*/
|
||||
define(['Modernizr'], function(Modernizr) {
|
||||
Modernizr.addTest('textencoder', !!(window.TextEncoder && window.TextEncoder.prototype.encode));
|
||||
Modernizr.addTest('textencoder', !!(window.TextEncoder && window.TextEncoder.prototype.encode));
|
||||
Modernizr.addTest('textdecoder', !!(window.TextDecoder && window.TextDecoder.prototype.decode));
|
||||
});
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
"href": "https://developers.google.com/web/updates/2018/03/webauthn-credential-management#the_solution"
|
||||
}
|
||||
],
|
||||
"property": "publicKeyCredential",
|
||||
"property": "publickeycredential",
|
||||
"tags": ["webauthn", "web authentication"],
|
||||
"authors": ["Eric Delia"]
|
||||
}
|
||||
|
||||
@@ -13,6 +13,9 @@ window.caniusecb = function(caniuse) {
|
||||
describe('caniuse', function() {
|
||||
var unusedModernizr = [];
|
||||
var unusedCaniuse = _.keys(caniuse.data);
|
||||
// TODO:: This map could (theoretically!) be build automatically by going through all feature-detects and look into
|
||||
// the docs where property and caniuse tags are written down. One should anyway look if some are missing here or in
|
||||
// the feature detect docs
|
||||
var map = {
|
||||
adownload: 'download',
|
||||
ambientlight: 'ambient-light',
|
||||
|
||||
Reference in New Issue
Block a user