Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'createTextRange' seems to be missing from 'lib.dom.d.ts' and other including libs #10181

Closed
DanielRosenwasser opened this issue Aug 5, 2016 · 1 comment
Labels
Breaking Change Would introduce errors in existing code Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript

Comments

@DanielRosenwasser
Copy link
Member

Several elements in lib.dom.d.ts used to have a createTextRange method:

/**
   * Creates a TextRange object for the element.
   */
createTextRange(): TextRange;

You can see that somehow this got dropped between the old (left) and 2.x (right) libs:

image

@DanielRosenwasser DanielRosenwasser added Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Aug 5, 2016
@DanielRosenwasser DanielRosenwasser added this to the TypeScript 2.0.1 milestone Aug 5, 2016
@DanielRosenwasser DanielRosenwasser added Breaking Change Would introduce errors in existing code and removed Bug A bug in TypeScript labels Aug 5, 2016
@DanielRosenwasser
Copy link
Member Author

According to @zhengbli this is a break because this is an IE-only API. Users can augment the interfaces if necessary.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Breaking Change Would introduce errors in existing code Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript
Projects
None yet
Development

No branches or pull requests

2 participants