This site (https://html5test.com/index.html) can be used to list browser features upon visiting. I'm using ElectronJS (Chromium-based) and I'd like to have control over the features that get reported to feature detection mechanisms.
I can do something like window.XMLHttpRequest = function() {};
but what about other things like events? For instance, the Script execution events feature expects to be able to s.addEventListener("load",callback,false);
. Maybe CustomEvent
? There are also many form field types (date, month, week, time). How can I emulate them?
I would also like to know how to report any such features as missing. There are more features I'd like to remove than add.