# Expectation `Attr` extends `Node`, but `Attr.cloneNode()` returns a new `Attr`, not just a `Node`. Chrome dev tools: <img width="313" alt="Schermafbeelding 2022-02-04 om 23 47 06" src="https://user-images.githubusercontent.com/6933510/152613370-bfbaece9-c92f-4bc9-bd76-6761b56a1b3f.png"> # Reality But in [`lib.dom.d.ts`, its return type is `Node`](https://github.com/microsoft/TypeScript/blob/3328feb7991f358e245088d48b64ad9da8f015e2/lib/lib.dom.d.ts#L10495). This can give false errors, like this example from the VS Code TS linter: <img width="600" alt="Schermafbeelding 2022-02-04 om 23 43 52" src="https://user-images.githubusercontent.com/6933510/152613468-c95eecdf-b8fe-439f-9200-0472f754fbcf.png">