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 23208 - Attributes and translation
Summary: Attributes and translation
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Erika Doyle Navara
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: CR
Depends on:
Blocks:
 
Reported: 2013-09-11 08:13 UTC by i18n IG
Modified: 2014-01-16 15:12 UTC (History)
8 users (show)

See Also:


Attachments

Description i18n IG 2013-09-11 08:13:17 UTC
3.2.3.4 The translate attribute
http://www.w3.org/TR/html5/dom.html#the-translate-attribute

The list of translatable attributes suggests that any values of attributes not on the list should not be translated, but this is not explicitly stated.

I assume that it is the case that values of attributes not listed are non-translatable whether or not the element on which they sit is set to translate.

I'm also not entirely clear what happens when the value of an attribute in the list appears on an element that has translate set to no.
Comment 1 github bugzilla bot 2014-01-06 22:40:29 UTC
Commit pushed to master at https://github.com/w3c/html

https://github.com/w3c/html/commit/572aa7b55bcf60eb7f1e8642f1203229ad20e70c
[Bug 23208]: Be more explicit about translate attribute behavior. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=23208
Comment 2 Erika Doyle Navara 2014-01-06 23:02:33 UTC
It seems that the most intuitive behavior would be to only translate translatable attributes when their element is in the translate-enabled state, and in all other cases not to translate an element's attribute values. 

As I read it, this is the behavior currently described in the spec, but I'd be happy to take a stab at making this more explicit:

https://github.com/w3c/html/commit/572aa7b55bcf60eb7f1e8642f1203229ad20e70c

Is there usage data or use cases suggesting otherwise? I'm having a hard time imagining why one might want to translate the translatable attributes but not the text node children of an element.

If the clarification looks okay, I'll merge it into the HTML5 CR spec.
Comment 3 Felix Sasaki 2014-01-07 14:57:30 UTC
(In reply to Erika Doyle Navara from comment #2)
> It seems that the most intuitive behavior would be to only translate
> translatable attributes when their element is in the translate-enabled
> state, and in all other cases not to translate an element's attribute
> values. 
> 
> As I read it, this is the behavior currently described in the spec, but I'd
> be happy to take a stab at making this more explicit:
> 
> https://github.com/w3c/html/commit/572aa7b55bcf60eb7f1e8642f1203229ad20e70c
> 
> Is there usage data or use cases suggesting otherwise? I'm having a hard
> time imagining why one might want to translate the translatable attributes
> but not the text node children of an element.
> 
> If the clarification looks okay, I'll merge it into the HTML5 CR spec.

The clarification looks good to me.

- Felix
Comment 4 Erika Doyle Navara 2014-01-08 00:47:55 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:


   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted

Change Description: Making translation behaviors of attributes under translate-enabled and no-translate states of an element a little more explicit.

Rationale: Clarifies intended behavior of the translate attribute for web authors and implementers of localization tools (no normative changes).
Comment 5 github bugzilla bot 2014-01-08 00:54:24 UTC
Commit pushed to master at https://github.com/w3c/html

https://github.com/w3c/html/commit/32c3e93f765dde4b0873c519cd4728305bada5f0
Adding W3C fork markers for HTML5 CR bug 23208.
Comment 6 github bugzilla bot 2014-01-08 00:59:31 UTC
Commits pushed to CR at https://github.com/w3c/html

https://github.com/w3c/html/commit/8c743ed23b2006f9bd738735b703b21a54fb4a0b
[Bug 23208]: Be more explicit about translate attribute behavior. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=23208

https://github.com/w3c/html/commit/af58f280cb43e860043a81ce436dda9fa9d03a95
Adding W3C fork markers for HTML5 CR bug 23208.

Conflicts:
	source
Comment 7 github bugzilla bot 2014-01-16 15:12:29 UTC
Commits pushed to CR at https://github.com/w3c/html

https://github.com/w3c/html/commit/572aa7b55bcf60eb7f1e8642f1203229ad20e70c
[Bug 23208]: Be more explicit about translate attribute behavior. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=23208

https://github.com/w3c/html/commit/32c3e93f765dde4b0873c519cd4728305bada5f0
Adding W3C fork markers for HTML5 CR bug 23208.