Add `assert(element == node.element)` here?