fixing DOM nodeName assertions