Bug 171498 - AX: Support time@datetime for verbosity clarification of dates, times, and durations
Summary: AX: Support time@datetime for verbosity clarification of dates, times, and du...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: chris fleizach
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-05-01 09:41 PDT by chris fleizach
Modified: 2017-05-01 15:52 PDT (History)
10 users (show)

See Also:


Attachments
patch (9.47 KB, patch)
2017-05-01 09:43 PDT, chris fleizach
no flags Details | Formatted Diff | Diff
patch (9.48 KB, patch)
2017-05-01 09:58 PDT, chris fleizach
no flags Details | Formatted Diff | Diff
patch (9.47 KB, patch)
2017-05-01 10:02 PDT, chris fleizach
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-elcapitan-wk2 (1.05 MB, application/zip)
2017-05-01 10:54 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-elcapitan (1.66 MB, application/zip)
2017-05-01 11:07 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews102 for mac-elcapitan (765.92 KB, application/zip)
2017-05-01 11:10 PDT, Build Bot
no flags Details
patch (10.96 KB, patch)
2017-05-01 12:29 PDT, chris fleizach
jdiggs: review+
Details | Formatted Diff | Diff
Additional patch for ATK so tests aren't skipped (1.64 KB, patch)
2017-05-01 13:08 PDT, Joanmarie Diggs
no flags Details | Formatted Diff | Diff
patch (12.70 KB, patch)
2017-05-01 14:18 PDT, chris fleizach
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description chris fleizach 2017-05-01 09:41:36 PDT
Support time@datetime for verbosity clarification of dates, times, and durations

* NOTES
Looks like the time element covers date, time, and durations.
http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-time-element

Examples:

Duration spoken as "four minutes eighteen seconds"
<time datetime="4m 18s">04:18</time>

Versus Time spoken as "four eighteen"
<time>04:18</time> <!-- implicit -->
<time datetime="04:18">04:18</time> <!-- explicit, redundant -->
Comment 1 chris fleizach 2017-05-01 09:41:51 PDT
<rdar://problem/12985540>
Comment 2 chris fleizach 2017-05-01 09:43:38 PDT
Created attachment 308724 [details]
patch
Comment 3 chris fleizach 2017-05-01 09:58:16 PDT
Created attachment 308726 [details]
patch
Comment 4 Build Bot 2017-05-01 10:01:08 PDT
Attachment 308726 [details] did not pass style-queue:


ERROR: Source/WebCore/accessibility/ios/WebAccessibilityObjectWrapperIOS.mm:1287:  One line control clauses should not use braces.  [whitespace/braces] [4]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 chris fleizach 2017-05-01 10:02:37 PDT
Created attachment 308727 [details]
patch
Comment 6 Joanmarie Diggs 2017-05-01 10:17:41 PDT
Do you think it would be worthwhile to add cases to the tests which hold all the roles and elements, if they're not already there, namely roles-exposed.html, roles-computedRoleString.html, and in the case of my platform, gtk/xml-roles-exposed.html?

Looking at the mappings, I'm going to have to slap some extra object attributes on it. https://w3c.github.io/html-aam/#el-time, so if you could do roles-exposed.html and roles-computedRoleString.html, that would be great. Once your patch lands, I'll do the stuff for my platform.

p.s. Your mappings are a blank says the HTML AAM. One of us should file an issue. If you'd like, I'll do that after your patch lands too.
Comment 7 Build Bot 2017-05-01 10:54:10 PDT
Comment on attachment 308727 [details]
patch

Attachment 308727 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/3651923

New failing tests:
accessibility/roles-computedRoleString.html
accessibility/roles-exposed.html
Comment 8 Build Bot 2017-05-01 10:54:11 PDT
Created attachment 308732 [details]
Archive of layout-test-results from ews107 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 9 chris fleizach 2017-05-01 10:57:19 PDT
(In reply to Joanmarie Diggs (irc: joanie) from comment #6)
> Do you think it would be worthwhile to add cases to the tests which hold all
> the roles and elements, if they're not already there, namely
> roles-exposed.html, roles-computedRoleString.html, and in the case of my
> platform, gtk/xml-roles-exposed.html?
> 
> Looking at the mappings, I'm going to have to slap some extra object
> attributes on it. https://w3c.github.io/html-aam/#el-time, so if you could
> do roles-exposed.html and roles-computedRoleString.html, that would be
> great. Once your patch lands, I'll do the stuff for my platform.
> 

Yes will do. Looks like those tests started failing anyway, so there's probably something there

> p.s. Your mappings are a blank says the HTML AAM. One of us should file an
> issue. If you'd like, I'll do that after your patch lands too.

Great thanks!
Comment 10 Build Bot 2017-05-01 11:07:42 PDT
Comment on attachment 308727 [details]
patch

Attachment 308727 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/3651953

New failing tests:
accessibility/roles-computedRoleString.html
accessibility/roles-exposed.html
Comment 11 Build Bot 2017-05-01 11:07:44 PDT
Created attachment 308733 [details]
Archive of layout-test-results from ews114 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 12 Build Bot 2017-05-01 11:10:12 PDT
Comment on attachment 308727 [details]
patch

Attachment 308727 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/3652118

New failing tests:
accessibility/roles-computedRoleString.html
accessibility/roles-exposed.html
Comment 13 Build Bot 2017-05-01 11:10:13 PDT
Created attachment 308734 [details]
Archive of layout-test-results from ews102 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 14 chris fleizach 2017-05-01 12:29:23 PDT
Created attachment 308747 [details]
patch
Comment 15 Joanmarie Diggs 2017-05-01 13:08:48 PDT
Created attachment 308754 [details]
Additional patch for ATK so tests aren't skipped

Chris, the attached provides the WebKitGtk expectations for your new test, the updated expectations for roles-exposed-expected.html, and maps the new TimeRole to ATK_ROLE_STATIC. If it wouldn't be too much trouble for you to include this with the patch you land, it should keep my platform's gardeners from skipping the tests. (Sometimes they are trigger-happy in the spirit of green bots.)
Comment 16 Joanmarie Diggs 2017-05-01 13:09:53 PDT
Comment on attachment 308747 [details]
patch

r+ but please see my comment and attachment. If it wouldn't be too much trouble....

I'll do the object attribute thing tomorrow.
Comment 17 chris fleizach 2017-05-01 14:03:11 PDT
(In reply to Joanmarie Diggs (irc: joanie) from comment #15)
> Created attachment 308754 [details]
> Additional patch for ATK so tests aren't skipped
> 
> Chris, the attached provides the WebKitGtk expectations for your new test,
> the updated expectations for roles-exposed-expected.html, and maps the new
> TimeRole to ATK_ROLE_STATIC. If it wouldn't be too much trouble for you to
> include this with the patch you land, it should keep my platform's gardeners
> from skipping the tests. (Sometimes they are trigger-happy in the spirit of
> green bots.)

Yep will do
Comment 18 chris fleizach 2017-05-01 14:18:12 PDT
Created attachment 308765 [details]
patch
Comment 19 Joanmarie Diggs 2017-05-01 14:38:28 PDT
(In reply to chris fleizach from comment #9)
> (In reply to Joanmarie Diggs (irc: joanie) from comment #6)
 
> > p.s. Your mappings are a blank says the HTML AAM. One of us should file an
> > issue. If you'd like, I'll do that after your patch lands too.
> 
> Great thanks!

Issue and pull request to update your platform's mappings:
https://github.com/w3c/html-aam/pull/89
Comment 20 WebKit Commit Bot 2017-05-01 15:52:39 PDT
Comment on attachment 308765 [details]
patch

Clearing flags on attachment: 308765

Committed r216038: <http://trac.webkit.org/changeset/216038>
Comment 21 WebKit Commit Bot 2017-05-01 15:52:41 PDT
All reviewed patches have been landed.  Closing bug.