question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google Feedback on 4.4 Beta

See original GitHub issue

Opening on the behalf of @h-joo from https://github.com/microsoft/TypeScript/issues/45047:

Readonly attributes in DOMPoint, DOMMatrix, DOMRect

Some properties of DOMPoint, DOMMatrix, DOMRect became readonly, and this no longer match the specification. This is because these types no longer override properties from the extended types to be read/write.

Compare(DOMPoint):

Compare(DOMMatrix):

Compare(DOMRect):

Removed Types

SpeechRecognition, RTCError got removed from lib.dom.d.ts. There are existing code which use this API, and it would be difficult to migrate without proper type support either from the compiler or from definitelyTyped.

Offscreen Rendering API changes

OffscreenCanvas still exists, but it’s marked as deprecated. Though it is no longer a value, i.e. code calling new OffscreenCanvas no longer works, it’s just an interface. We think this might be unintentional. Though, we would still be able to migrate via referring to the types defined in DefinitelyTyped.

ShadowRoot interface changes

ShadowRoot is a subtype of DocumentFragment. DocumentFragment has a getElementById which returns HTMLElement. In 4.4-beta, DocumentFragment no longer defines its own getElementById method, meaning HTMLElement.prototype.shadowRoot.getElementById returns Element, not HTMLElement. This causes hundreds of breakages of code using shadowRoot.

ChildNode interface changes

In 4.4, ChildNode no longer extends Node. This seems like a bug.

DocumentOrShadowRoot interface changes

DocumentOrShadowRoot no longer has getSelection, elementFromPoint, elementsFromPoint, caretFromRange. We also couldn’t find in the repo whether this was intentional or not.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
saschanazcommented, Aug 27, 2021

Seems that elementFromPoint and elementsFromPoint should be restored since those are supported everywhere.

1reaction
h-joocommented, Aug 24, 2021

Great, now all makes sense. Thank you for your help!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google feedback on TypeScript 4.4-beta · Issue #45047 - GitHub
Feedback to the TypeScript team for TypeScript 4.4-beta. This GitHub issue contains feedback on the TS 4.4-beta release from the team
Read more >
Android Beta Feedback - Google
The Android Beta Feedback app included in the Beta software. This is the preferred method if you want to report a bug. See...
Read more >
End of support for outdated Google Maps versions
To ensure a more reliable experience for users, Maps on Android will no longer work on app version 9.64 or below and Android...
Read more >
Chrome Beta - Apps on Google Play
Welcome to Chrome Beta for Android! • Preview the latest features: Try out the newest features. (Sometimes these may be a little rough...
Read more >
Chrome Beta 81.0.4044.34 (arm-v7a) (Android 4.4+) - APKMirror
Chrome Beta 81.0.4044.34 (arm-v7a) (Android 4.4+) APK Download by Google LLC - APKMirror Free and safe Android APK downloads.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found