See Understanding Techniques for WCAG Success Criteria for important information about the usage of these informative techniques and how they relate to the normative WCAG 2.0 success criteria. The Applicability section explains the scope of the technique, and the presence of techniques for a specific technology does not imply that the technology can be used in all situations to create content that meets WCAG 2.0.
HTML and XHTML
This technique relates to:
Note: This technique must be combined with other techniques to meet SC 1.3.2. See Understanding SC 1.3.2 for details.
The objective of this technique is to identify changes in the text direction of text that includes nested directional runs by providing the dir
attribute on
inline elements. A nested directional run is a run of text that includes mixed directional text, for example, a paragraph in English containing a quoted Hebrew sentence which in turn includes an English phrase. Use of the dir
attribute on an enclosing span
or other inline element may be necessary because the Unicode bidirectional algorithm can produce undesirable results when mixed
directional text contains spaces or punctuation. The concepts used in this technique are described in What you need to know about the bidi algorithm and inline markup.
This example defines the text direction of a nested, mixed-direction phrase, in Hebrew and English, to be right-to-left. Because the whole quote is in Hebrew, and therefore runs right to left, the text "W3C" and the comma should appear to the left of (i.e., after) the Hebrew text, like this:
The title is "?????? ???????, W3C" in Hebrew.
Visually-ordered ASCII version (RTL text in uppercase, LTR in lower):
the title is "w3c ,YTIVITCA NOITAZILANOITANRETNI" in hebrew.
The Unicode bidirection algorithm alone is insufficient to achieve the right result, and leaves the text 'W3C' on the right side of the quote:
The title is "?????? ???????, W3C" in Hebrew.
Visually-ordered ASCII version:
the title is "YTIVITCA NOITAZILANOITANRETNI, w3c" in hebrew.
The following markup will produce the expected result:
Example Code:
<p>The title says "<span lang="he"
dir="rtl">?????? ???????, W3C</span>" in Hebrew.</p>
Resources are for information purposes only, no endorsement implied.
Examine the text direction of text in the document
If the text direction is right-to-left, check that for the ancestor element that
has a dir
attribute, the attribute has the value "rtl"
If the text direction is left-to-right, check that there is no ancestor element
with a dir
attribute, or that for the ancestor element that has a
dir
attribute, the attribute has the value "ltr"
Checks #2 and #3 are true for all text.
If this is a sufficient technique for a success criterion, failing this test procedure does not necessarily mean that the success criterion has not been satisfied in some other way, only that this technique has not been successfully implemented and can not be used to claim conformance.
静电是什么hcv9jop3ns0r.cn | 枸杞什么时候吃最好hcv9jop8ns0r.cn | 乳腺导管扩张是什么意思严重吗1949doufunao.com | 春什么秋什么hlguo.com | 草果在炖肉起什么作用hcv8jop5ns5r.cn |
请问紫苏叶有什么功效hcv9jop5ns3r.cn | 这句话是什么意思beikeqingting.com | 糖尿病吃什么食物hcv9jop6ns5r.cn | 卵巢囊肿吃什么药hcv9jop5ns2r.cn | 大枕大池是什么意思bysq.com |
hdl是什么意思1949doufunao.com | 孕晚期宫缩是什么感觉hcv8jop1ns0r.cn | 新生儿什么时候上户口zsyouku.com | 肌酐是什么hcv9jop6ns5r.cn | 妈妈的舅舅叫什么hanqikai.com |
不想吃饭没胃口是什么原因hcv8jop7ns3r.cn | mk属于什么档次0297y7.com | 嫡孙是什么意思hcv9jop1ns3r.cn | 台卡是什么hcv8jop5ns6r.cn | 64年出生属什么hcv9jop5ns7r.cn |