addClassToAriaElements() {
		[].forEach.call(document.querySelectorAll('[*]'), (node) => {
			var log = '';

			node.attributes.forEach(function(attribute) {
				if (attribute.name === 'role' || attribute.name.substring(0, 5) === 'aria-') {
					log += '[' + attribute.name + '=' + attribute.value + ']';
				}
			});

			if (log !== '') {
				this.logger([node, log]);

				node.classList.add(this.className);
				node.dataset[this.dataAttribute] = log;
			}
		});
	}
// Add class to all aria elements
Add class to all aria elements
Add class to all aria elements
addClassToAriaElements() {
		[].forEach.call(document.querySelectorAll('[*]'), (node) => {
			var log = '';
			node.attributes.forEach(function(attribute) {
				if (attribute.name === 'role' || attribute.name.substring(0, 5) === 'aria-') {
					log += '[' + attribute.name + '=' + attribute.value + ']';
				}
			});
			if (log !== '') {
				this.logger([node, log]);
				node.classList.add(this.className);
				node.dataset[this.dataAttribute] = log;
			}
		});
	}
addClassToAriaElements ( ) { [ ] . forEach . call ( document . querySelectorAll ( '[*]' ) , ( node ) => { var log = '' ; node . attributes . forEach ( function ( attribute ) { if ( attribute . name === 'role' || attribute . name . substring ( 0 , 5 ) === 'aria-' ) { log += '[' + attribute . name + '=' + attribute . value + ']' ; } } ) ; if ( log !== '' ) { this . logger ( [ node , log ] ) ; node . classList . add ( this . className ) ; node . dataset [ this . dataAttribute ] = log ; } } ) ; }
Add class to all aria elements
Add class to all aria elements