Unsupported Language
On this page:
Test
1 |
References
|
About these tests
Nearby:
More HTML 4.01 Tests
|
UAAG 1.0 Test Suite
UAAG 1.0 Requirement
-
Checkpoint
2.10
Don't render text in unsupported writing systems
(Priority
3
)
-
Provision
1
:
For graphical user agents, allow configuration not to render text in unsupported scripts (i.e., writing systems) when that text would otherwise be rendered.
-
Provision
2
:
When configured per provision one of this checkpoint, indicate to the user in context that author-supplied content has not been rendered due to lack of support for a writing system.
Procedure
- Determine if the text of the two test paragraphs has been rendered.
Run test
Text paragraph 1, lang="en" follows:
A black shadow dropped down into the circle. It was Bagheera
the Black Panther, inky black all over, but with the panther
markings showing up in certain lights like the pattern of watered
silk. Everybody knew Bagheera, and nobody cared to cross his
path; for he was as cunning as Tabaqui, as bold as the wild
buffalo, and as reckless as the wounded elephant. But he had a
voice as soft as wild honey dripping from a tree, and a skin
softer than down.
Test paragraph 2, lang="xx" follows:
Xxxxx xxxx xxxx xxxx xxxxx. Xxxxx xxxx xxxxxx xxxxx xxxxx xxxx.
Xxxxx xxxx xx x xxxxxx xxxx xx xxxx xxxx. Xxxx xxxxx xxxx xxxx xxxx xxxxxx. Xxxx
xxxx xxxxx x xxxx xxxx xx xxxx xxxxxx. Xxxxxxx xxx x xxx xx xxxxxxxx xxxx. Xxxxxx
xxxxx x xxxxxxx xxx xxxxx x xxxxx xxxxx. Xxxx xxxxx xx xxxxx xxxxxx.
Expected results
- The user agent should not render the text of test paragrapgh 2, which has the lang attribute value of "xx"--an unsuppoerted language.
- The user agent should indicate to the user in context that the content of test paragraph 2 has not been rendered.
Source code
<h5 lang="en" lang="xx">Text paragraph 1, lang="en" follows:</h5>
<p lang="en" lang="xx">A black shadow dropped down into the circle. It was Bagheera
the Black Panther, inky black all over, but with the panther
markings showing up in certain lights like the pattern of watered
silk. Everybody knew Bagheera, and nobody cared to cross his
path; for he was as cunning as Tabaqui, as bold as the wild
buffalo, and as reckless as the wounded elephant. But he had a
voice as soft as wild honey dripping from a tree, and a skin
softer than down.
</p>
<h5 lang="xx">Test paragraph 2, lang="xx" follows:</h5>
<p lang="xx">Xxxxx xxxx xxxx xxxx xxxxx. Xxxxx xxxx xxxxxx xxxxx xxxxx xxxx.
Xxxxx xxxx xx x xxxxxx xxxx xx xxxx xxxx. Xxxx xxxxx xxxx xxxx xxxx xxxxxx. Xxxx
xxxx xxxxx x xxxx xxxx xx xxxx xxxxxx. Xxxxxxx xxx x xxx xx xxxxxxxx xxxx. Xxxxxx
xxxxx x xxxxxxx xxx xxxxx x xxxxx xxxxx. Xxxx xxxxx xx xxxxx xxxxxx.
</p>
-
HTML 4.01
specification for
LANG Attribute
This test is part of a
test suite
for the
User Agent Accessibility Guidelines (UAAG)
1.0
. This work is conducted by the
User Agent Accessibility Guidelines Working
Group
, which is part of W3C's
Web Accessibility Initiative (WAI)
. Please send comments on this test to w3c-wai-ua@w3.org (
public archive
).
Test created by:
Last modified: $Date: 2003/04/02 23:46:33 $ by $Author: jongund $
Copyright
© 1999 - 2003
W3C®
(
MIT
,
INRIA
,
Keio
), All Rights Reserved. W3C
liability
,
trademark
,
document use
and
software licensing
rules apply.