`Element#id` can return undefined, which can throw at times. Neither the spec, nor TypeScript prescribe anything. https://dom.spec.whatwg.org/#ref-for-dom-element-id%E2%91%A0 Is the current situation enough, or do we want to return a `UndefOr[String]`?