Re: [whatwg/dom] Support `Temporal.Duration` as an argument to timeout-related APIs (Issue #1458)

fabon-f left a comment (whatwg/dom#1458)

IMO "duration-like object" should mean an object with properties `years`, `minutes`, etc. since existing APIs (`Intl.DurationFormat.p.format` and `Temporal.Duration.from`) accept such object.

Browsers can convert a duration-like object to real `Temporal.Duration` via `Temporal.Duration.from` and then convert to milliseconds via `total` method.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1458#issuecomment-4072759994
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1458/4072759994@github.com>

Received on Tuesday, 17 March 2026 06:45:50 UTC