Fix for dom/attributes test, failing in Nightly. Related to issue 3790