Align `getCapabilities()` documentation with JavaScript runtime behavior
Description
As pointed out by #38249 the objects presented as the properties of the return value of the getCapabilities(), method were wrong. I removed that abstraction all together and mapped the properties to the actual runtime behavior developers see in JavaScript. There’s no need to introduce abstract or specialized types like "UDoubleRange" that might make developers think they’re dealing with a built-in, complex data type. This reduces unnecessary cognitive overhead.
Motivation
Additional details
Related issues and pull requests
Fixes #38249
Preview URLs
-
/en-US/docs/Web/API/InputDeviceInfo/getCapabilities -
/en-US/docs/Web/API/MediaStreamTrack/getCapabilities
Flaws (1)
Note! 1 document with no flaws that don't need to be listed. 🎉
URL: /en-US/docs/Web/API/MediaStreamTrack/getCapabilities
Title: MediaStreamTrack: getCapabilities() method
Flaw count: 1
-
macros:
-
Can't resolve /en-US/docs/Web/API/MediaTrackConstraints/resizeMode
-
(comment last updated: 2025-08-05 11:22:20)
@Josh-Cena, I added another file here to document the getCapabilities() method. I upgraded the code example because the previous one was throwing errors. Also, the properties of the MediaTrackCapabilities need to be changed here as well, but I'll wait for your review on the previous file