Skip to content

Add ElementInternals, attachInternals from HTML standard #33218

Open
@JanMiksovsky

Description

@JanMiksovsky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions