the test can be more robust if we test for !nameNode.classList.contains('favorite')