Closed keithphw closed 4 years ago
Hello @keithphw Thanks for reporting.
It seems that there is a mismatch between core defs and TS dom defs. I will check it now.
It will be fine now, please see this commit with a sample code: https://github.com/cincheo/jsweet-quickstart/commit/8c7d143583011c47c9392acec75886f3309db589
You will notice that getElementsByTagName actually returns a HTMLCollectionOf<>
insteadof NodeListOf<>
which matches TypeScript definition of this signature.
Please close if ok for you
Works great, thank you!
Hi, I noticed that this line throws an unusual error:
NodeList nodeList = document.getElementsByTagName("body");
It throws the error if I copy it into the quickstart project. Below is the full code and output. Thanks for your work on this great project. Cheers, Keith