Skip to content

ElementTraversal: missing some nulls #12526

Closed

Description

Inside dom.generated.d.ts:

interface ElementTraversal {
    readonly childElementCount: number;
    readonly firstElementChild: Element;
    readonly lastElementChild: Element;
    readonly nextElementSibling: Element;
    readonly previousElementSibling: Element;
}

should be:

interface ElementTraversal {
    readonly childElementCount: number;
    readonly firstElementChild: Element | null;
    readonly lastElementChild: Element | null;
    readonly nextElementSibling: Element | null;
    readonly previousElementSibling: Element | null;
}

Example: https://jsfiddle.net/tkrotoff/khzbrkpg/

(tested with [email protected] lib.dom.d.ts)

Activity

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

    @mhegazy
    Contributor
  4. perryjiang commented on Dec 2, 2016

    @perryjiang

    Hi, I'm new to OSS. If I understand the issue right, this looks like a relatively simple problem? If so, I'd be glad to tackle it.

  5. perryjiang commented on Dec 3, 2016

    @perryjiang

    Thanks! PR submitted.

  6. modified the milestones: TypeScript 2.2, on Dec 5, 2016
  7. added
    Fixed in TSJS repo
    on Dec 5, 2016
  8. mhegazy commented on Jan 11, 2017

    @mhegazy
    Contributor

    This still needs to be merged into master from https://github.com/Microsoft/TSJS-lib-generator. Keeping it open until then.

  9. added
    Fixed
    on Feb 2, 2017
  10. removed
    Fixed in TSJS repo
    on Feb 3, 2017
  11. 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

    BugDomain: lib.d.tsFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions