Confirmed users
1,396
edits
| Line 235: | Line 235: | ||
| <b>Integral element</b> | <b>Integral element</b> | ||
| When processing {{term|integral element}}: | |||
| * if the next word is a word of integral element (i.e. the caret is on word preceding the element word) the caret should be set before the word; | |||
| * if the caret is before the word then the element should be skipped and the caret should be set before the next word; | |||
| * if the caret is on the word then the user should traverse the text of the word entirely (in the case when integral element is presented by complex word) and then the caret should be set before the next word after the word. | |||
| <div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;"> | <div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;"> | ||
| Line 244: | Line 247: | ||
| </div> | </div> | ||
| If the caret is on the  | If the caret is on the focusable element word and goes outside it then the rich text container of the element should be focused. For example, if the HTML button is focused (which means the caret is on the element) then the caret should be set before the word following the button. | ||
| <b>In-text element</b> | <b>In-text element</b> | ||
| When processing in-text  | When processing {{term|in-text element}}: | ||
| * if the next word is the first word of a sentence the caret should be placed directly before the element | * if the next word is the first word of a sentence of in-text element the caret should be placed directly before the element; | ||
| * if the caret is placed directly before the first word of the sentence, then a move to the next word would place the caret directly in front of the second word of the sentence | * if the caret is placed directly before the first word of the sentence, then a move to the next word would place the caret directly in front of the second word of the sentence; | ||
| *  | * if the caret is placed directly before the first word of the sentence, and the sentence contains only one word, then a move to the next word would result in placing the caret directly in front of the word following the sentence.   | ||
| <div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;"> | <div style="margin: 1em 0px; border: 2px dotted orange; padding: 1em;"> | ||
| Line 266: | Line 267: | ||
| If the caret is in the middle of the rich sentence then the user should navigate the whole sentence by words. For example, if the caret is inside of the anchor then the caret should be moved by words through the anchor text. | If the caret is in the middle of the rich sentence then the user should navigate the whole sentence by words. For example, if the caret is inside of the anchor then the caret should be moved by words through the anchor text. | ||
| If the caret is inside the focusable in-text element and the caret goes out of the element then the area where the element is placed should be focused. | If the caret is inside the focusable in-text element and the caret goes out of the element then the area where the element is placed should be focused. If the caret is outside the focusable in-text element and the caret goes into it then the element should be focused. | ||
| ===Navigation by characters=== | ===Navigation by characters=== | ||