wasm-metering
Version:
injects metering into webassembly binaries
44 lines (41 loc) • 636 B
JavaScript
/**
* https://github.com/kangax/html-minifier/issues/63#issuecomment-18634279
*/
var attrs = [
"allowfullscreen",
"async",
"autofocus",
"checked",
"compact",
"declare",
"default",
"defer",
"disabled",
"formnovalidate",
"hidden",
"inert",
"ismap",
"itemscope",
"multiple",
"multiple",
"muted",
"nohref",
"noresize",
"noshade",
"novalidate",
"nowrap",
"open",
"readonly",
"required",
"reversed",
"seamless",
"selected",
"sortable",
"truespeed",
"typemustmatch",
"contenteditable",
"spellcheck"
];
module.exports = function(attr){
return attrs.indexOf(attr) > -1;
};