Intended audience: users, XHTML/HTML coders (using editors or scripting), script developers (PHP, JSP, etc.), CSS coders, Web project managers, and anyone who wants to know how translate attributes work in current browsers.
These tests check whether browsers recognize the translate mode of an element.
Note that the snapshot summaries of these test results are for released versions of the browsers tested. Versions that are still in development may provide better support for these features. The tests themselves do not test any vendor prefixes.
The tables show results for tests run on the date shown. Above the tables are summaries of the results at that date. The table data may be more up-to-date than the summary. If the tables contain some incorrectly scored tests, or tests that relate to non-released versions of browsers, these are not included in the summary.
To see the test, click on the link in the left-most column. To see detailed results for a single test, click on the link in the right-most column. Chrome, Safari and Opera recognise the translation mode via the JavaScript API. Firefox and IE 9 do not. Links: Section 3.2.3.4 • Related tests
Detecting translate mode
Snapshot summary, 2014-02-18
Firefox 27.0, Chrome 32.0.1700.107, Safari 6.1.1, Internet Explorer 9, Opera 19.0
Test link
Assertion
Details
no translate attribute
In the default case, ie. with no translate attribute in the page, javascript will detect the translation mode of text as translate-enabled.
the-translate-attribute-007
translate=yes
If the translate attribute is set to yes, javascript will detect the translation mode of text as translate-enabled.
the-translate-attribute-008
translate=no
If the translate attribute is set to no, javascript will detect the translation mode of text as no-translate.
the-translate-attribute-009
translate inherits no
If the translate attribute is set to no, javascript will detect the translation mode of elements inside that element with no translate flag as no-translate.
the-translate-attribute-010
translate=yes inside translate=no
If the translate attribute is set to yes on an element inside an element with the translate attribute set to no, javascript will detect the translation mode of text in the inner element as translate-enabled.
the-translate-attribute-011
translate=""
If the translate attribute is set to a null string, javascript will detect the translation mode of text as translate-enabled.
the-translate-attribute-012