Skip to content

Node.insertBefore() second parameter is not optional #8320

Closed

Description

This is in the definition of a DOM Node, from lib.d.ts:

insertBefore(newChild: Node, refChild?: Node): Node;

According to it, refChild is optional, which is not true according to the MDN documentation and certainly causes a runtime error in Google Chrome.

Activity

  1. added
    Bug
    Domain: lib.d.ts
    on Apr 27, 2016
  2. added this to the milestone on Apr 27, 2016
  3. mhegazy commented on Apr 27, 2016

    @mhegazy
    Contributor
  4. added
    Breaking Change
    on Apr 27, 2016
  5. modified the milestones: TypeScript 2.0, on Apr 27, 2016
  6. added
    Fixed
    and removed on Apr 27, 2016
  7. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking ChangeBugDomain: lib.d.tsFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions