for key in attrs.keys():
                    if key not in node.attrs or node.attrs[key] != attrs[key]: