Using allowed_attribute? instead of allowed_element? since we're comparing attributes.
Defining methods inside WhiteList module.