You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Option 1: Comply with WHATWG by making window.parent nullable.
Option 2: Given that window.parent is non-nullable as TypeScript's specification, make window.top also non-nullable for consistency.
Option 3: Leave it as is, meaning window.parent is non-nullable and window.top is nullable. The inconsistency is attributed to TypeScript's specification.
Activity
whzx5byb commentedon May 8, 2024
FYI: microsoft/TypeScript-DOM-lib-generator#1089
yohabe commentedon May 8, 2024
whzx5byb
Thank you for your response.
Wouldn't it be better for consistency to make window.top non-nullable?
RyanCavanaugh commentedon May 8, 2024
Which one is this bug about?
yohabe commentedon May 9, 2024
There are three options.
Option 1: Comply with WHATWG by making
window.parentnullable.Option 2: Given that
window.parentis non-nullable as TypeScript's specification, makewindow.topalso non-nullable for consistency.Option 3: Leave it as is, meaning
window.parentis non-nullable andwindow.topis nullable. The inconsistency is attributed to TypeScript's specification.RyanCavanaugh commentedon May 9, 2024
Without a stronger argument for any one of those, we'll leave as-is. Thanks!
yohabe commentedon May 10, 2024
Ryan Cavanaugh (@RyanCavanaugh)
What is the reason for creating a situation that contradicts the WHATWG specifications and lacks consistency with the definition of window.top?