Typescript: Dom d.ts does not define event.target.parentNode

Created on 1 Mar 2017  路  4Comments  路  Source: microsoft/TypeScript

_From @linocatucci on February 28, 2017 19:25_

  • VSCode Version: Code 1.9.1 (f9d0c687ff2ea7aabd85fb9a43129117c0ecf519, 2017-02-08T23:31:51.320Z)
  • OS Version: Darwin x64 16.4.0
  • Extensions:

|Extension|Author|Version|
|---|---|---|
|beautify|HookyQR|0.8.8|
|jslint|ajhyndman|1.2.1|
|jshint|dbaeumer|0.10.15|
|vscode-eslint|dbaeumer|1.2.6|
|githistory|donjayamanne|0.1.5|
|auto-close-tag|formulahendry|0.3.9|
|vscode-JS-CSS-HTML-formatter|lonefy|0.2.2|
|vscode-icons|robertohuertasm|7.3.0|
|open-in-browser|techer|0.0.3|


Hello,

with some code in VSCode the autocomplete and hints are not working.

For instance with the following codeL
console.log(event.target.parentNode);
Visual studio code does not show the options when I type in event.target.ParentNode or with event.target.
Can somebody help me?

cheers,
Lino

Steps to Reproduce:

  1. type in console.log(event.target.p -> parentNode is expected
    2.type in event.ta -> target is expected.

_Copied from original issue: Microsoft/vscode#21570_

Bug lib.d.ts VS Code Tracked help wanted

Most helpful comment

The help wanted label indicates that this is open for the community to fix and is not a priority for the core team.

As mentioned in the linked PR (Microsoft/TSJS-lib-generator#207) there are significant performance issues when introducing the generics that would need to be addressed.

All 4 comments

This issue still exists in Version 1.18.0 (1.18.0)

It has more than 1 year guys. It's time to fix that annoying bug, used brackets for comparison and intellisense is much better for DOM.

The help wanted label indicates that this is open for the community to fix and is not a priority for the core team.

As mentioned in the linked PR (Microsoft/TSJS-lib-generator#207) there are significant performance issues when introducing the generics that would need to be addressed.

Was this page helpful?
0 / 5 - 0 ratings