autoconsent
autoconsent copied to clipboard
Autoconsent standard
I would like to suggest an autoconsent-standard that can be used by website developers / cookie-consent developers.
Assume a website has the following code for the cookie-consent's "OK" button:
<a data-autoconsent="true">OK</a>
Then this could work as follows:
- This library looks for elements with a data-autoconsent attribute;
- If the library finds such an element, it fires a click-event;
- Website-owner implements a (javaScript) listener for the click event and closes the cookie-popup, assuming minimal (functional) cookies.
Perhaps a standard already exists, if so please let me know. I'm looking forward to your opinion :)
--
For reference, see: https://github.com/ghostery/autoconsent/issues/39