So you suspect, that `getAttribute` method is behaving differently with these 2 specific attributes (`class` & `id`). Could you add new tests to confirm that behavior.

Basically right now (if no other code changes is made), then missing `class` or `id` attribute should return empty string instead of null (if you're correct). It seems unbelievable to me, however.