-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Wrong parameter suggestions for JavaScript DOM Function #12212
Comments
I can confirm, as can #12216. It is there on and https://github.com/ternjs/tern/blob/master/defs/browser.json#L1278 though. Weird. edit: It also works on the demo: http://ternjs.net/doc/demo/#simple |
Yes the two JSON files you linked to showed it properly implemented. I compared it to the |
@tjgerot I was thinking the same, but then again |
It works for me, guys. Do you have any related extensions, such as |
@busykai I can replicate it without using any extensions too. I'm on |
Nope, I was wrong. It does not work for me. I was trying `document.getElementsByTagName' instead. I'll have to look at what happens with our tern. Next week, perhaps. Thanks @tjgerot for reporting this! |
Oh, it's been fixed in |
@busykai cool 👍 I tried to update |
@busykai we have a PR for bringing latest tern... I will take a look tonight to try to merge it soon. I have neglected @marcelgerber on that PR. |
Oh yeah, totally forgot about the PR. #11569. It's up-to-date too. |
Thanks @MiguelCastillo! Merging that will fix this issue. I'll look into that PR as well. |
This is fixed with the merge of #11569 and will come to you in Release 1.8. |
As I was coding, I realized that unlike
document.getElementsByTagName
, when I type indocument.getElementsByClassName
it is suggested not as a function (as it should), but as a method (like.toLowerCase
).Also, if I ignore the suggestion and keep typing it, brackets recognizes it as the method and proceeds to tell me there are no parameters (when there should be a string 'name').
Here are links to Mozilla's documentation on the
document.getElementByClassName
:click here.
If this is truly an issue, the fix probably won't take that long. Thank you.
The text was updated successfully, but these errors were encountered: