-
Notifications
You must be signed in to change notification settings - Fork 44
Test for WCAG technique H56 (dir attribute on an inline element) #72
Comments
Solution direction: |
Found this on http://stackoverflow.com/questions/12006095/javascript-how-to-check-if-character-is-rtl
Edit: Twitter repo is using a slightly different regex to detect rtl hashtags (so notice, without spaces):
|
The languageDirAttributeIsUsed test is working well for RTL characters in an LTR page, now I just need to get it to work the other way around. |
I've added the following regex to quail for RTL/LTR detection:
The test goes through elements and can switch back and forth between RTL/LTR contexts and then determine if there is a mix in any text element that is not captured in an element with a |
Create a test for the following WCAG 2.0 technique: http://www.w3.org/TR/WCAG20-TECHS/H56.html
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.
Test Procdure
The text was updated successfully, but these errors were encountered: