René's URL Explorer Experiment


Title: For...of with HTMLCollection · Issue #5329 · microsoft/TypeScript · GitHub

Open Graph Title: For...of with HTMLCollection · Issue #5329 · microsoft/TypeScript

X Title: For...of with HTMLCollection · Issue #5329 · microsoft/TypeScript

Description: Hi, Getting a compile error when trying to compile: // ul is an HTMLElement for (let child of ul.children) { //body } I get the following error: error TS2495: Type 'HTMLCollection' is not an array type or a string type. Is there a way to...

Open Graph Description: Hi, Getting a compile error when trying to compile: // ul is an HTMLElement for (let child of ul.children) { //body } I get the following error: error TS2495: Type 'HTMLCollection' is not an array ...

X Description: Hi, Getting a compile error when trying to compile: // ul is an HTMLElement for (let child of ul.children) { //body } I get the following error: error TS2495: Type 'HTMLCollection' is not a...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/5329

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"For...of with HTMLCollection","articleBody":"Hi,\n\nGetting a compile error when trying to compile:\n\n```\n// ul is an HTMLElement\nfor (let child of ul.children) {\n    //body\n}\n```\n\nI get the following error: `error TS2495: Type 'HTMLCollection' is not an array type or a string type.`\n\nIs there a way to get type support for this? Or is too much work to bother with?\n","author":{"url":"https://github.com/n2westman","@type":"Person","name":"n2westman"},"datePublished":"2015-10-19T20:30:04Z","url":"https://github.com/microsoft/TypeScript/issues/5329"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9571317c-a319-51f4-0760-ea39bf8be58f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDA3C:BBAAA:5BF729:7B8FEC:6B00D08D
html-safe-nonce762c27a664c5fa880e2b0d33706253db24a67da60fcd7e906603b870712aadb3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTNDOkJCQUFBOjVCRjcyOTo3QjhGRUM6NkIwMEQwOEQiLCJ2aXNpdG9yX2lkIjoiODQ1NTUxMTA3MjQzNzIyNzY2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac803df62d2d5168d94326692dab5db37221ba218462e28649d6f7428bbff8dcb5
hovercard-subject-tagissue:112226494
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/5329/issue_layout
twitter:imagehttps://opengraph.githubassets.com/891f1ab7c57e03b77cb4e83a61ab76f63aa9a86c2e771b5c84195e5d83ce374c/microsoft/TypeScript/issues/5329
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/891f1ab7c57e03b77cb4e83a61ab76f63aa9a86c2e771b5c84195e5d83ce374c/microsoft/TypeScript/issues/5329
og:image:altHi, Getting a compile error when trying to compile: // ul is an HTMLElement for (let child of ul.children) { //body } I get the following error: error TS2495: Type 'HTMLCollection' is not an array ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamen2westman
hostnamegithub.com
expected-hostnamegithub.com
None85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4943239a6d2c591325dad6e5c313e1cafda877f6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/5329#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F5329
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F5329
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/5329
Reloadhttps://github.com/microsoft/TypeScript/issues/5329
Reloadhttps://github.com/microsoft/TypeScript/issues/5329
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests307 (307)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5329
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5329
For...of with HTMLCollectionhttps://github.com/microsoft/TypeScript/issues/5329#top
https://github.com/mhegazy
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
https://github.com/n2westman
Nickolas Westman (n2westman)https://github.com/n2westman
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issue-112226494
Nexthttps://github.com/microsoft/TypeScript/issues/5329?timeline_page=1
https://github.com/xLama
JCLama (xLama)https://github.com/xLama
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149343055
https://developer.mozilla.org/en-US/docs/Web/API/NodeList#Why_can't_I_use_forEach_or_map_on_a_NodeList.3Fhttps://developer.mozilla.org/en-US/docs/Web/API/NodeList#Why_can't_I_use_forEach_or_map_on_a_NodeList.3F
https://github.com/n2westman
Nickolas Westman (n2westman)https://github.com/n2westman
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149346356
https://github.com/xLama
JCLama (xLama)https://github.com/xLama
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149348253
https://github.com/n2westman
Nickolas Westman (n2westman)https://github.com/n2westman
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149348659
https://github.com/xLama
JCLama (xLama)https://github.com/xLama
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149349210
https://github.com/n2westman
Nickolas Westman (n2westman)https://github.com/n2westman
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149349547
https://github.com/n2westman
Nickolas Westman (n2westman)https://github.com/n2westman
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149349593
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
on Oct 19, 2015https://github.com/microsoft/TypeScript/issues/5329#event-439718333
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on Oct 20, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149420632
#2695https://github.com/microsoft/TypeScript/issues/2695
https://github.com/xLama
JCLama (xLama)https://github.com/xLama
on Oct 20, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149562659
Kagami Sascha Rosylight (@saschanaz)https://github.com/saschanaz
#2696https://github.com/microsoft/TypeScript/issues/2696
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on Oct 20, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149565422
JCLama (@xLama)https://github.com/xLama
#4947https://github.com/microsoft/TypeScript/issues/4947
https://github.com/xLama
JCLama (xLama)https://github.com/xLama
on Oct 20, 2015https://github.com/microsoft/TypeScript/issues/5329#issuecomment-149572219
Kagami Sascha Rosylight (@saschanaz)https://github.com/saschanaz
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22
on Dec 8, 2015https://github.com/microsoft/TypeScript/issues/5329#event-486248911
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 1.8https://github.com/microsoft/TypeScript/milestone/15
on Dec 8, 2015https://github.com/microsoft/TypeScript/issues/5329#event-486248948
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Zhengbo Li (zhengbli)https://github.com/zhengbli
on Dec 8, 2015https://github.com/microsoft/TypeScript/issues/5329#event-486249003
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Apr 19, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-295419820
https://developer.mozilla.org/en-US/docs/Web/API/ParentNode/childrenhttps://developer.mozilla.org/en-US/docs/Web/API/ParentNode/children
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on Apr 19, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-295428761
WebIDL sayshttps://heycam.github.io/webidl/#es-iterators
Chromium on April 2016https://bugs.chromium.org/p/chromium/issues/detail?id=538558#c23
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on Apr 21, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-296242662
microsoft/TypeScript-DOM-lib-generator#235https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/235
https://github.com/felixfbecker
Felix Becker (felixfbecker)https://github.com/felixfbecker
on Aug 15, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-322593972
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Aug 15, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-322594469
Felix Becker (@felixfbecker)https://github.com/felixfbecker
https://github.com/felixfbecker
Felix Becker (felixfbecker)https://github.com/felixfbecker
on Aug 15, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-322595679
https://github.com/saschanaz
Kagami Sascha Rosylight (saschanaz)https://github.com/saschanaz
on Aug 16, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-322623234
microsoft/TypeScript-DOM-lib-generator#235https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/235
https://github.com/tinganho
Tingan Ho (tinganho)https://github.com/tinganho
on Sep 18, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-330159944
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...ofhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of
http://www.typescriptlang.org/play/index.html#src=var%20iterable%20%3D%20%7B%0A%20%20%5BSymbol.iterator%5D()%20%7B%0A%20%20%20%20return%20%7B%0A%20%20%20%20%20%20i%3A%200%2C%0A%20%20%20%20%20%20next()%20%7B%0A%20%20%20%20%20%20%20%20if%20(this.i%20%3C%203)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%20%7B%20value%3A%20this.i%2B%2B%2C%20done%3A%20false%20%7D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20return%20%7B%20value%3A%20undefined%2C%20done%3A%20true%20%7D%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%3B%0A%20%20%7D%0A%7D%3B%0A%0Afor%20(var%20value%20of%20iterable)%20%7B%0A%20%20console.log(value)%3B%0A%7Dhttp://www.typescriptlang.org/play/index.html#src=var%20iterable%20%3D%20%7B%0A%20%20%5BSymbol.iterator%5D()%20%7B%0A%20%20%20%20return%20%7B%0A%20%20%20%20%20%20i%3A%200%2C%0A%20%20%20%20%20%20next()%20%7B%0A%20%20%20%20%20%20%20%20if%20(this.i%20%3C%203)%20%7B%0A%20%20%20%20%20%20%20%20%20%20return%20%7B%20value%3A%20this.i%2B%2B%2C%20done%3A%20false%20%7D%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20return%20%7B%20value%3A%20undefined%2C%20done%3A%20true%20%7D%3B%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%3B%0A%20%20%7D%0A%7D%3B%0A%0Afor%20(var%20value%20of%20iterable)%20%7B%0A%20%20console.log(value)%3B%0A%7D
https://github.com/kitsonk
Kitson Kelly (kitsonk)https://github.com/kitsonk
on Sep 18, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-330184601
https://github.com/tinganho
Tingan Ho (tinganho)https://github.com/tinganho
on Sep 18, 2017https://github.com/microsoft/TypeScript/issues/5329#issuecomment-330185487
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#19752https://github.com/microsoft/TypeScript/pull/19752
on Nov 6, 2017https://github.com/microsoft/TypeScript/issues/5329#event-1328471485
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Nov 6, 2017https://github.com/microsoft/TypeScript/issues/5329#event-1328471663
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
on Nov 6, 2017https://github.com/microsoft/TypeScript/issues/5329#event-1328471746
microsofthttps://github.com/microsoft
on Jun 19, 2018https://github.com/microsoft/TypeScript/issues/5329#event-1689620659
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/5329
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/5329
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20lib.d.ts%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.