Use Element instead of Node for better compatibility with DOM API