Skip to content

according to DOM specs cancelBubble is a legacy alias of .stopPropagation() #1384

Closed
@Ahmed-Hakeem

Description

@Ahmed-Hakeem

lib Update Request

Missing / Incorrect Definition

According to DOM spec cancelBubble is a legacy alias of .stopPropagation(), and after exploring library code this issue happened because of where the property value came from, It is read from the property deprecated value from data.json (cancelBubble.__compact.status.deprecated) which is exported by @mdn/browser-compat-data v5.0.0, this value is read inside mapInterfaceLike function in src/build/bcd/mapper.ts

This issue has been resolved in @mdn/browser-compat-data starting from v5.1.9 inside
commit: 36ffef821fafb429430f0286009787505a3ff000

so I think it will be solved by only updating @mdn/browser-compat-data

Documentation Link

https://dom.spec.whatwg.org/#interface-event

Reference

microsoft/TypeScript#50517

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions