adapt for FF 22+, which renamed NamedNodeMap