reading attributes here is problematic since DOM access is slow. It should all be done in selector.