Updated to warn on trying to change attributes for elements without