RESOLVED FIXED 129952
Web Inspector: AXI: Use loc strings for known aria-invalid types
https://bugs.webkit.org/show_bug.cgi?id=129952
Summary Web Inspector: AXI: Use loc strings for known aria-invalid types
James Craig
Reported 2014-03-07 18:57:52 PST
Web Inspector: AXI: Use loc strings for known aria-invalid types true -> "Yes" spelling -> "Spelling" grammar -> "Grammar" "false" values will be suppressed. Unknown types ("foo") and "false" will all eval to "true" and be exposed as "Yes"… If there are other types added in ARIA.Next (e.g. aria-invalid="order"), once WebKit recognizes them, we should still pass them through to the client and localize them separately. In other words, don't suppress values that WebKit knows about, even if we don't have a loc string for it yet.
Attachments
patch (12.49 KB, patch)
2014-03-11 02:55 PDT, James Craig
joepeck: review+
jcraig: commit-queue-
patch (removing minor test case updates to avoid conflicts while commit bot is down) (9.71 KB, patch)
2014-03-13 16:42 PDT, James Craig
no flags
James Craig
Comment 1 2014-03-07 18:59:34 PST
> Unknown types ("foo") and "false" will all eval to "true" and be exposed as "Yes"… Typo: unknown values will be truthy, but "false" values won't.
James Craig
Comment 2 2014-03-07 23:48:26 PST
This should be updated to use an enum for the inspector protocol, too.
James Craig
Comment 3 2014-03-11 02:55:31 PDT
James Craig
Comment 4 2014-03-11 02:58:40 PDT
James Craig
Comment 5 2014-03-12 09:48:50 PDT
Comment on attachment 226409 [details] patch cq- b/c I'll need to update the expected test result once bug 129779 lands
Joseph Pecoraro
Comment 6 2014-03-12 10:57:56 PDT
Comment on attachment 226409 [details] patch r=me, nice.
James Craig
Comment 7 2014-03-13 16:42:14 PDT
Created attachment 226628 [details] patch (removing minor test case updates to avoid conflicts while commit bot is down)
WebKit Commit Bot
Comment 8 2014-03-13 19:49:32 PDT
Comment on attachment 226628 [details] patch (removing minor test case updates to avoid conflicts while commit bot is down) Clearing flags on attachment: 226628 Committed r165597: <http://trac.webkit.org/changeset/165597>
WebKit Commit Bot
Comment 9 2014-03-13 19:49:35 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.