[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-unassigned
Subject:    [Webkit-unassigned] [Bug 231041] New: DateTimeFormat.resolvedOptions shouldn't return an object with
From:       bugzilla-daemon () webkit ! org
Date:       2021-09-30 22:57:13
Message-ID: bug-231041-2851 () https ! bugs ! webkit ! org/
[Download RAW message or body]

--1633042632.237db1Ca0.15786
Date: Thu, 30 Sep 2021 15:57:12 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.webkit.org/
Auto-Submitted: auto-generated

https://bugs.webkit.org/show_bug.cgi?id=231041

            Bug ID: 231041
           Summary: DateTimeFormat.resolvedOptions shouldn't return an
                    object with other date/time properties if dateStyle or
                    timeStyle are set
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned@lists.webkit.org
          Reporter: philip.chimento@gmail.com

According to the specification for Intl.DateTimeFormat.prototype.resolvedOptions() \
(https://tc39.es/ecma402/#sec-intl.datetimeformat.prototype.resolvedoptions) step \
5.d, none of the properties in Table 4 (weekday, era, year, month, day, dayPeriod, \
hour, minute, second, fractionalSecondDigits, timeZoneName) should be present on the \
returned object if dateStyle or timeStyle are present. JavaScriptCore currently does \
not implement this step correctly:

> new Intl.DateTimeFormat('en', {dateStyle:'short'}).resolvedOptions().year
"2-digit"

This means you currently cannot always pass the object returned from \
resolvedOptions() back into the DateTimeFormat constructor as the options argument, \
for one thing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
--1633042632.237db1Ca0.15786
Date: Thu, 30 Sep 2021 15:57:12 -0700
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: https://bugs.webkit.org/
Auto-Submitted: auto-generated

<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - DateTimeFormat.resolvedOptions shouldn't return an object with other \
date/time properties if dateStyle or timeStyle are set"  \
href="https://bugs.webkit.org/show_bug.cgi?id=231041">231041</a>  </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>DateTimeFormat.resolvedOptions shouldn't return an object with other \
date/time properties if dateStyle or timeStyle are set  </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>philip.chimento&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>According to the specification for \
Intl.DateTimeFormat.prototype.resolvedOptions() (<a \
href="https://tc39.es/ecma402/#sec-intl.datetimeformat.prototype.resolvedoptions">https://tc39.es/ecma402/#sec-intl.datetimeformat.prototype.resolvedoptions</a>) \
step 5.d, none of the properties in Table 4 (weekday, era, year, month, day, \
dayPeriod, hour, minute, second, fractionalSecondDigits, timeZoneName) should be \
present on the returned object if dateStyle or timeStyle are present. JavaScriptCore \
currently does not implement this step correctly:

<span class="quote">&gt; new Intl.DateTimeFormat('en', \
{dateStyle:'short'}).resolvedOptions().year</span > &quot;2-digit&quot;

This means you currently cannot always pass the object returned from \
resolvedOptions() back into the DateTimeFormat constructor as the options argument, \
for one thing.</pre>  </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>
--1633042632.237db1Ca0.15786--



_______________________________________________
webkit-unassigned mailing list
webkit-unassigned@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-unassigned


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic