Skip to content

[Web API type definition issue] HTMLDocument shouldn't be deprecated #1997

Closed
@Bashamega

Description

@Bashamega

Summary

For some reson Typescript says HTMLDocument is deprecated, but it is not

Expected vs. Actual Behavior

Even though MDN says it is widely available, TypeScript says it is deprecated.

Playground Link

https://www.typescriptlang.org/play/?#code/CYewxgrgtgpgdgFwAQEs4GcEEM5hiAMyQAkAVAWQBkARcaeBIA

Browser Support

  • This API is supported in at least two major browser engines (not two Chromium-based browsers).

Have Tried The Latest Releases

  • This issue applies to the latest release of TypeScript.
  • This issue applies to the latest release of @types/web.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions