René's URL Explorer Experiment


Title: window.parent should have the same global variables as window · Issue #41684 · microsoft/TypeScript · GitHub

Open Graph Title: window.parent should have the same global variables as window · Issue #41684 · microsoft/TypeScript

X Title: window.parent should have the same global variables as window · Issue #41684 · microsoft/TypeScript

Description: TypeScript Version: 4.1.2 Search Terms: window.parent, window.Element, globalThis Code window.HTMLDivElement; window.parent.HTMLDivElement; // Error here Expected behavior: The window.parent object should have the same base global variab...

Open Graph Description: TypeScript Version: 4.1.2 Search Terms: window.parent, window.Element, globalThis Code window.HTMLDivElement; window.parent.HTMLDivElement; // Error here Expected behavior: The window.parent object...

X Description: TypeScript Version: 4.1.2 Search Terms: window.parent, window.Element, globalThis Code window.HTMLDivElement; window.parent.HTMLDivElement; // Error here Expected behavior: The window.parent object...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"window.parent should have the same global variables as window","articleBody":"**TypeScript Version:**  4.1.2\r\n\r\n**Search Terms:** `window.parent`, `window.Element`, `globalThis`\r\n\r\n**Code**\r\n\r\n```ts\r\nwindow.HTMLDivElement;\r\nwindow.parent.HTMLDivElement; // Error here\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nThe `window.parent` object should have the same base global variables as the `window` object. If not in the context of iframe, then `window === window.parent` so all global variables should be the same in such a case. When being in the iframe context `window !== window.parent` however it should still have all the base global variables, so that we can do for example `element instanceof window.parent.Element`. You could think, why don't just write `element instanceof Element`? The answer is that it would work in almost all browsers beside Chrome. And Chrome is actually the one implementing it correctly. Both global window and iframe window have their own global context so `window.parent.Element !== window.Element`. In TS all the global variables are defined in the `globalThis` so the type for the `window.parent` should be `declare var parent: Window & typeof globalThis;`\r\n\r\n**Actual behavior:**\r\n\r\nThe `window.parent.HTMLDivElement;` does not exist on type Window.\r\n\r\n**Playground Link:** https://www.typescriptlang.org/play?#code/O4SwdgJg9sB0ASAVAsgGQCIgG4FEA2ApgLYFgAuA3AFCiQywAOAhgE6lkIobb7HsVA\r\n","author":{"url":"https://github.com/lukejagodzinski","@type":"Person","name":"lukejagodzinski"},"datePublished":"2020-11-25T03:29:31Z","url":"https://github.com/microsoft/TypeScript/issues/41684"}

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:610acf57-dcba-a039-6283-9b0ebf0614ee
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD992:4279A:26A7B3C:3405692:6B01BD39
html-safe-nonce91c4caf4cdb0cc2fe9c0d5a36d301130388f061aa65934a63a2e7fd8a97636ae
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTkyOjQyNzlBOjI2QTdCM0M6MzQwNTY5Mjo2QjAxQkQzOSIsInZpc2l0b3JfaWQiOiIzMDE0ODk5ODM2MjE1NDc1NTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace18901be306851ac08e2076084133dcbadcef7998a29ffca7a23184d4da5666e
hovercard-subject-tagissue:750354273
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/41684/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1d3b07304007b10d9af9353fba80238ab29f0adbbe904ebadfbd6f509c8642da/microsoft/TypeScript/issues/41684
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1d3b07304007b10d9af9353fba80238ab29f0adbbe904ebadfbd6f509c8642da/microsoft/TypeScript/issues/41684
og:image:altTypeScript Version: 4.1.2 Search Terms: window.parent, window.Element, globalThis Code window.HTMLDivElement; window.parent.HTMLDivElement; // Error here Expected behavior: The window.parent object...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelukejagodzinski
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/41684#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F41684
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%2F41684
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/41684
Reloadhttps://github.com/microsoft/TypeScript/issues/41684
Reloadhttps://github.com/microsoft/TypeScript/issues/41684
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests312 (312)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/41684
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41684
window.parent should have the same global variables as windowhttps://github.com/microsoft/TypeScript/issues/41684#top
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%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
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
https://github.com/lukejagodzinski
Łukasz Jagodziński (lukejagodzinski)https://github.com/lukejagodzinski
on Nov 25, 2020https://github.com/microsoft/TypeScript/issues/41684#issue-750354273
https://www.typescriptlang.org/play?#code/O4SwdgJg9sB0ASAVAsgGQCIgG4FEA2ApgLYFgAuA3AFCiQywAOAhgE6lkIobb7HsVAhttps://www.typescriptlang.org/play#code/O4SwdgJg9sB0ASAVAsgGQCIgG4FEA2ApgLYFgAuA3AFCiQywAOAhgE6lkIobb7HsVA
https://github.com/andrewbranch
Andrew Branch (andrewbranch)https://github.com/andrewbranch
on Nov 25, 2020https://github.com/microsoft/TypeScript/issues/41684#issuecomment-733927253
this scripthttps://www.typescriptlang.org/play#code/JYOwLgpgTgZghgYwgAgEITJKB1UATAewHdkIAPSEPAZ2VyuOQG8AoZd5KCOQkAGwCeyAA5wu4AFx18jAGTIwA4RAIxkAcz4EARnD4AVABbBqAbhYBfFnggI+YlADcxybRiz1CRKekzRPcgpKKmqaOnpGJuYszlDIMAQEyAC8yACMAEwAzNFufjgyRAB0ABL6ALIAMgAiwI4AonwQALYQ4OZ5HoVFouJgpRU1dY0tbWCmyAD0k8gCcAIAhCyd-t29Y0UJBEVgBADKYFCg6gAUAJQT08gEhsggBCxAA
Andrew Branch (andrewbranch)https://github.com/andrewbranch
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%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
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
on Nov 25, 2020https://github.com/microsoft/TypeScript/issues/41684#event-4039722118
https://github.com/lukejagodzinski
Łukasz Jagodziński (lukejagodzinski)https://github.com/lukejagodzinski
on Nov 26, 2020https://github.com/microsoft/TypeScript/issues/41684#issuecomment-734016728
https://github.com/HolgerJeromin
Holger Jeromin (HolgerJeromin)https://github.com/HolgerJeromin
on Aug 19, 2022https://github.com/microsoft/TypeScript/issues/41684#issuecomment-1220497945
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
microsoft/TypeScript-DOM-lib-generator#820https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/820
https://github.com/eps1lon
Sebastian "Sebbie" Silbermann (eps1lon)https://github.com/eps1lon
on Aug 19, 2022https://github.com/microsoft/TypeScript/issues/41684#issuecomment-1220642771
Andrew Branch (@andrewbranch)https://github.com/andrewbranch
microsoft/TypeScript-DOM-lib-generator#820https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/820
thishttps://github.com/microsoft/TypeScript-DOM-lib-generator/pull/820
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/41684
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/41684
Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featurehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Awaiting%20More%20Feedback%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
SuggestionAn idea for TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Suggestion%22
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.