function getAttribute(name) {
		var tag = document.querySelector("[" + name + "]");
		return tag ? tag.getAttribute(name) : null;
	}
Searches for the first occurrence of an attribute with
the given name and if found, returns its value.

Name must not contain characters that have a meaning in CSS selectors (no escaping).

@param {string} name Name of the attribute to search for
@returns {string} Value of the attribute or <code>null</code>