From 251d4fdd0875e876288be46f5b2864dddc9ab6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= <andre.bargull@gmail.com> Date: Tue, 10 Dec 2024 09:06:59 +0100 Subject: [PATCH] Editorial: Add two more required formats This makes format selection in BasicFormatMatcher unambiguous when requesting the following two formats: 1. Standalone "month": There's currently a tie between "year, month" and "month, day". Adding standalone "month" as a required format resolves this tie. 2. "dayPeriod, hour, minute, second, fractionalSecondDigits": There's a tie between "hour, minute, second, fractionalSecondDigits" and "dayPeriod, hour, minute, second". Requiring a format which has both "dayPeriod" and "fractionalSecondDigits" resolves this tie. --- spec/datetimeformat.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/datetimeformat.html b/spec/datetimeformat.html index 85fa757b..39049b71 100644 --- a/spec/datetimeformat.html +++ b/spec/datetimeformat.html @@ -264,12 +264,14 @@ <h1>Internal slots</h1> <li>year, month, day</li> <li>year, month</li> <li>month, day</li> + <li>month</li> <li>hour, minute, second, fractionalSecondDigits</li> <li>hour, minute, second</li> <li>hour, minute</li> - <li>dayPeriod, hour</li> + <li>dayPeriod, hour, minute, second, fractionalSecondDigits</li> <li>dayPeriod, hour, minute, second</li> <li>dayPeriod, hour, minute</li> + <li>dayPeriod, hour</li> </ul> </li> <li>