Can you use `getAttribute` instead?