Prevent getAttribute() from calling static methods