Extracts data attributes from a given element out of a sample whitelist.
The element to gather attributes from
The whitelist of accepted data attributes and their relative types
An object of the available attributes and their values
Extracts data attributes from a given element out of a sample whitelist.