[#438] fixed an exception in Firefox about the deprecated Attr `nodeName` and `nodeValue`

@see https://developer.mozilla.org/en-US/docs/Web/API/Attr