This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23337 - add aria-label and aria-valuetext to list of translatable attributes in html 5.1
Summary: add aria-label and aria-valuetext to list of translatable attributes in html 5.1
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords: a11y, aria
Depends on: 21421
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-24 07:30 UTC by steve faulkner
Modified: 2013-11-13 21:01 UTC (History)
9 users (show)

See Also:


Attachments

Description steve faulkner 2013-09-24 07:30:07 UTC
+++ This bug was initially created as a clone of Bug #21421 +++

http://www.w3.org/html/wg/drafts/html/master/dom.html#the-translate-attribute
Comment 1 dmacdona 2013-09-24 21:49:16 UTC
agree they should be translatable
Comment 2 Ian 'Hixie' Hickson 2013-09-24 22:21:04 UTC
Why wouldn't this be done in the ARIA spec? Doing it here would mean that every ARIA host language has to list these each time. That's a layering violation at best, and an editorial mess at worst.
Comment 3 James Craig 2013-09-24 22:56:01 UTC
The ARIA spec does define these as the only two attributes that accept string values. The edit in question though, is in regards to the HTML @translate attribute, and how it controls the translatability of attributes in HTML. As such, these two ARIA attrs should be included in the list.
Comment 4 Ian 'Hixie' Hickson 2013-09-25 01:53:23 UTC
I don't understand why it makes sense to list ARIA attributes in the HTML spec. Should we also list all the ways SVG and MathML can introduce translatable text? How about other languages we don't know about that people will use with HTML?
Comment 5 Michael[tm] Smith 2013-09-25 12:45:47 UTC
(In reply to James Craig from comment #3)
> The ARIA spec does define these as the only two attributes that accept
> string values. The edit in question though, is in regards to the HTML
> @translate attribute,

It's not the HTML @translate attribute, it's the ITS2 @translate attribute:

  http://www.w3.org/TR/its20/#trans-datacat

As such, it's appropriate that that ARIA spec (instead of the HTML spec) should define which ARIA attributes are translatable. As Hixie points out in comment 4, it makes no more sense for the HTML spec to try to define which ARIA attributes are translatable than it does for the HTML spec to define which SVG or MathML attributes are translatable.
Comment 6 James Craig 2013-09-25 17:21:28 UTC
(In reply to Michael[tm] Smith from comment #5)
> (In reply to James Craig from comment #3)
> > The ARIA spec does define these as the only two attributes that accept
> > string values. The edit in question though, is in regards to the HTML
> > @translate attribute,
> 
> It's not the HTML @translate attribute, it's the ITS2 @translate attribute:
> 
>   http://www.w3.org/TR/its20/#trans-datacat

The bug references the HTML @translate attribute. 
http://www.w3.org/html/wg/drafts/html/master/dom.html#the-translate-attribute

If this HTML feature is pulling from the ITS2 spec, that should be clearly stated in the HTML spec.

> As such, it's appropriate that that ARIA spec (instead of the HTML spec)
> should define which ARIA attributes are translatable. As Hixie points out in
> comment 4, it makes no more sense for the HTML spec to try to define which
> ARIA attributes are translatable than it does for the HTML spec to define
> which SVG or MathML attributes are translatable.

I think it'd be appropriate to either mention those here or change the edit to mention that ~"The translatable attributes for ARIA, SVG, and MathML are (or should be) defined in their respective specifications." 

I'd be okay with removing the specific ARIA attrs if HTML would mention that there are additional translatable attributes, but that they are defined elsewhere. My concern is that there was previously no mention of these at all, so translation implementors would be likely to overlook them.
Comment 7 James Craig 2013-09-25 17:28:07 UTC
(In reply to Ian 'Hixie' Hickson from comment #4)
> I don't understand why it makes sense to list ARIA attributes in the HTML
> spec. Should we also list all the ways SVG and MathML can introduce
> translatable text? 

I think it's acceptable to acknowledge that these should/may be defined elsewhere.

> How about other languages we don't know about that people
> will use with HTML?

Other languages? I don't see the validity in this argument. Clearly the HTML spec knows about SVG, ARIA, and MathML because it makes specific mention of their use as being valid in HTML.
Comment 8 Ian 'Hixie' Hickson 2013-09-25 18:45:41 UTC
I definitely agree that it would make sense to say that other vocabularies might have translatable content too.

(In reply to James Craig from comment #7)
> Other languages? I don't see the validity in this argument.

How about, say, RDFa attributes. Or suppose someone defines a new language intended to be used with HTML, the way XForms was designed to work with XHTML2. They can define that it's valid to use their language with HTML, but there's no way we can know what attributes to list (since we don't know their language exists). So we can't give a comprehensive list.


> Clearly the HTML
> spec knows about SVG, ARIA, and MathML because it makes specific mention of
> their use as being valid in HTML.

Sure, but we shouldn't tie the evolution of these languages so tightly together that you can't progress one without the other — if we did that, there'd be no point them being separate languages, and we should just merge them. (Personally I'd be ok with that if we could find an editor with the bandwidth to do all those specs at once, but that's academic.) Since they are defined separately, we might as well benefit from that, and the way to benefit from that is to keep them orthogonal so that they can evolve separately.
Comment 9 James Craig 2013-09-25 19:48:47 UTC
(In reply to Ian 'Hixie' Hickson from comment #8)
> I definitely agree that it would make sense to say that other vocabularies
> might have translatable content too.

Do you agree that it makes sense to point to the specs that HTML knows about, because they can be used without namespaces in HTML?

PS. I also raised PFWG-ACTION-1267 to be more explicit in the ARIA spec about which attrs are translatable. (It's currenty just any that take string values.)
Comment 10 Ian 'Hixie' Hickson 2013-09-25 21:00:21 UTC
> Do you agree that it makes sense to point to the specs that HTML knows
> about, because they can be used without namespaces in HTML?

The only one that can be used without namespaces is ARIA, I think. (SVG and MathML are still namespaced in HTML, it's just that the namespacing is implicit in the text/html serialisaton.) But sure, we can mention explicit examples. I just don't want it to be authoritative, for the maintenance reasons mentioned above.
Comment 11 James Craig 2013-09-25 23:57:39 UTC
(In reply to Ian 'Hixie' Hickson from comment #10)
> > Do you agree that it makes sense to point to the specs that HTML knows
> > about, because they can be used without namespaces in HTML?
> 
> The only one that can be used without namespaces is ARIA, I think. (SVG and
> MathML are still namespaced in HTML, it's just that the namespacing is
> implicit in the text/html serialisaton.) But sure, we can mention explicit
> examples. I just don't want it to be authoritative, for the maintenance
> reasons mentioned above.

Steve Faulkner, if that works for you, will you propose a new edit that removes the explicit mention of the aria-label and aria-valuetext in the normative prose, and instead references the various latest TR specs for ARIA, SVG, and MathML?

You could list examples in an informative note, but I see Ian and Mike's points here that the normative list should not include attributes from these other specs.
Comment 12 steve faulkner 2013-09-26 07:21:13 UTC
(In reply to James Craig from comment #11)
> (In reply to Ian 'Hixie' Hickson from comment #10)
> > > Do you agree that it makes sense to point to the specs that HTML knows
> > > about, because they can be used without namespaces in HTML?
> > 
> > The only one that can be used without namespaces is ARIA, I think. (SVG and
> > MathML are still namespaced in HTML, it's just that the namespacing is
> > implicit in the text/html serialisaton.) But sure, we can mention explicit
> > examples. I just don't want it to be authoritative, for the maintenance
> > reasons mentioned above.
> 
> Steve Faulkner, if that works for you, will you propose a new edit that
> removes the explicit mention of the aria-label and aria-valuetext in the
> normative prose, and instead references the various latest TR specs for
> ARIA, SVG, and MathML?
> 
> You could list examples in an informative note, but I see Ian and Mike's
> points here that the normative list should not include attributes from these
> other specs.

Hi james, can do or can wait and see what hixies edit is and accept that if it is agreeable. We try to keep the HTML spec aligned with the whatwg spec where ever possible.
Comment 13 contributor 2013-11-13 21:01:17 UTC
Checked in as WHATWG revision r8276.
Check-in comment: Mention that other specs may also list translatable attributes.
http://html5.org/tools/web-apps-tracker?from=8275&to=8276