Open
Description
TypeScript Version: 3.5.2
Search Terms: ElementInternals, attachInternals
Code
let internals: ElementInternals;
Expected behavior:
No errors. The ElementInternals
interface and the related attachInternals
method on HTMLElement
are recent additions to the DOM spec. They are supported in Chrome 78 (scheduled for public release at the end of October 2019) and Edge canary builds.
Actual behavior:
Error Cannot find name 'ElementInternals'.
Playground Link: https://www.typescriptlang.org/play/#code/DYUwLgBAlgdmICcYENgGcBcECioC2IcAknIiugNwBQQA