René's URL Explorer Experiment


Title: Element.closest should return specific types for tag selectors · Issue #17550 · microsoft/TypeScript · GitHub

Open Graph Title: Element.closest should return specific types for tag selectors · Issue #17550 · microsoft/TypeScript

X Title: Element.closest should return specific types for tag selectors · Issue #17550 · microsoft/TypeScript

Description: TypeScript Version: 2.4.0 Code let a = document.querySelectorAll("a"); let div = a.closest("div"); Expected behavior: a is an HTMLAnchorElement, and div is an HTMLDivElement. Actual behavior: el2 is actually an Element because Element.cl...

Open Graph Description: TypeScript Version: 2.4.0 Code let a = document.querySelectorAll("a"); let div = a.closest("div"); Expected behavior: a is an HTMLAnchorElement, and div is an HTMLDivElement. Actual behavior: el2 i...

X Description: TypeScript Version: 2.4.0 Code let a = document.querySelectorAll("a"); let div = a.closest("div"); Expected behavior: a is an HTMLAnchorElement, and div is an HTMLDivElement. Ac...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Element.closest should return specific types for tag selectors","articleBody":"**TypeScript Version:**  2.4.0\r\n\r\n**Code**\r\n\r\n```ts\r\nlet a = document.querySelectorAll(\"a\");\r\nlet div = a.closest(\"div\");\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n`a` is an `HTMLAnchorElement`, and `div` is an `HTMLDivElement`.\r\n\r\n**Actual behavior:**\r\n\r\n`el2` is actually an `Element` because `Element.closest` always returns an Element.  This was fixed for `querySelector` in #8114 and the same behavior should be applied to `closest`.","author":{"url":"https://github.com/thw0rted","@type":"Person","name":"thw0rted"},"datePublished":"2017-08-01T14:20:58Z","url":"https://github.com/microsoft/TypeScript/issues/17550"}

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:b950f3df-32cf-44fd-c50e-233a8dff420b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C70:31B4CC:F30E10:140BE25:6B01020A
html-safe-noncee184d90f59e2214b781d6414a0a96c55481c619dc9f85928174f0383cccfb2cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzcwOjMxQjRDQzpGMzBFMTA6MTQwQkUyNTo2QjAxMDIwQSIsInZpc2l0b3JfaWQiOiI2NTQ0Njg3MDMzMDQ5MjE5NTk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1aaa590015e4a3556a523d5624b62daa3fc4ef79206a7a37340e6be4032de521
hovercard-subject-tagissue:247085705
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/17550/issue_layout
twitter:imagehttps://opengraph.githubassets.com/86fba456a3a55f6998c2e5f455584bf381115869eeb2ab90e503079bf058a10a/microsoft/TypeScript/issues/17550
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/86fba456a3a55f6998c2e5f455584bf381115869eeb2ab90e503079bf058a10a/microsoft/TypeScript/issues/17550
og:image:altTypeScript Version: 2.4.0 Code let a = document.querySelectorAll("a"); let div = a.closest("div"); Expected behavior: a is an HTMLAnchorElement, and div is an HTMLDivElement. Actual behavior: el2 i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethw0rted
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/17550#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F17550
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%2F17550
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/17550
Reloadhttps://github.com/microsoft/TypeScript/issues/17550
Reloadhttps://github.com/microsoft/TypeScript/issues/17550
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/17550
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/17550
#20177https://github.com/microsoft/TypeScript/pull/20177
Element.closest should return specific types for tag selectorshttps://github.com/microsoft/TypeScript/issues/17550#top
#20177https://github.com/microsoft/TypeScript/pull/20177
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
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Aug 1, 2017https://github.com/microsoft/TypeScript/issues/17550#issue-247085705
#8114https://github.com/microsoft/TypeScript/issues/8114
James Bromwell (thw0rted)https://github.com/thw0rted
on Aug 1, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1187740178
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Aug 1, 2017https://github.com/microsoft/TypeScript/issues/17550#issuecomment-319386864
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Aug 1, 2017https://github.com/microsoft/TypeScript/issues/17550#issuecomment-319387773
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#issuecomment-323810824
https://user-images.githubusercontent.com/8000722/29531972-cb368234-865f-11e7-9c33-8373ef5ef6f4.png
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1214586068
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1214586180
https://github.com/jcready
James Wyatt Cready-Pyle (jcready)https://github.com/jcready
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#issuecomment-323870246
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
#8114https://github.com/microsoft/TypeScript/issues/8114
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1214956497
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
Accepting PRshttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Accepting%20PRs%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
Working as IntendedThe behavior described is the intended behavior; this is not a bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Working%20as%20Intended%22
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1214956578
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1214956676
https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Aug 21, 2017https://github.com/microsoft/TypeScript/issues/17550#issuecomment-323872754
https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixeshttps://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes
https://github.com/thw0rted
James Bromwell (thw0rted)https://github.com/thw0rted
on Aug 22, 2017https://github.com/microsoft/TypeScript/issues/17550#issuecomment-323944707
https://github.com/jthoms1
Josh Thomas (jthoms1)https://github.com/jthoms1
on Nov 2, 2017https://github.com/microsoft/TypeScript/issues/17550#issuecomment-341484144
Mohamed Hegazy (@mhegazy)https://github.com/mhegazy
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
on Nov 3, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1325454390
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.7https://github.com/microsoft/TypeScript/milestone/56
on Nov 3, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1325454498
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Fixed in TSJS repoFix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yethttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%20in%20TSJS%20repo%22
on Nov 3, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1325454641
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 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1351049959
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#20177https://github.com/microsoft/TypeScript/pull/20177
on Nov 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1351076210
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
Fixed in TSJS repoFix merged in https://github.com/Microsoft/TSJS-lib-generator, but not ported yethttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%20in%20TSJS%20repo%22
on Nov 21, 2017https://github.com/microsoft/TypeScript/issues/17550#event-1351077896
microsofthttps://github.com/microsoft
on Jun 14, 2018https://github.com/microsoft/TypeScript/issues/17550#event-1682137077
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/17550
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/17550
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
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%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.