#pattern * User editing actions #ja $1 利用者編集作用 #en There are several actions that the user agent should allow the user to perform while the user is interacting with an editing host. How exactly each action is triggered is not defined for every action, but when it is not defined, suggested key bindings are provided to guide implementors. #ja 利用者が編集ホストと対話している間に利用者が実行することを利用者エージェントが認める[[SHOULD:べき]]である作用がいくつかあります。 すべての作用について正確にどのように誘発するのかを定義しているわけではありませんが、 定義していない場合には、実装者に対する指針として、鍵の束縛の案を提示します。 #en Move the caret #ja 脱字記号を移動する #en User agents must allow users to move the caret to any position within an editing host, even into nested editable elements. This could be triggered as the default action of keydown events with various key identifiers and as the default action of mousedown events. #ja 利用者エージェントは、利用者が編集ホスト中の任意の位置 (入れ子になった編集可能要素の中を含みます。) に脱字記号を移動させることを認めなければ[[MUST:なりません]]。これは、 各種の鍵識別子についての keydown 事象の既定作用として、および mousedown 事象の既定作用として誘発することができます。 #en Change the selection #ja 選択を変更する #en User agents must allow users to change the selection within an editing host, even into nested editable elements. User agents may prevent selections from being made in ways that cross from editable elements into non-editable elements (e.g. by making each non-editable descendant atomically selectable, but not allowing text selection within them). This could be triggered as the default action of keydown events with various key identifiers and as the default action of mousedown events. #ja 利用者エージェントは、利用者が編集ホスト中の選択を変更することを認めなければ[[MUST:なりません]] (入れ子になった編集可能要素の中を含みます)。 利用者エージェントは、編集可能要素と非編集可能要素を選択がまたぐことを (例えば、非編集可能子孫がそれぞれ原子的に選択可能としながら、その中の文章を選択できないようにすることで) 拒んでも[[MAY:構いません]]。これは、各種の鍵識別子についての keydown 事象の既定作用として、および mousedown 事象の既定作用として誘発することができます。 #en Insert text #ja 文章を挿入する #en This action must be triggered as the default action of a textInput event, and may be triggered by other commands as well. It must cause the user agent to insert the specified text (given by the event object's data attribute in the case of the textInput event) at the caret. #ja この作用は、 textInput 事象の既定作用として誘発しなければ[[MUST:ならず]]、 他の命令によって誘発しても[[MAY:構いません]]。 これにより、利用者エージェントは指定された文章 (textInput 事象の場合には事象オブジェクトの data 属性で与えられるもの) を脱字記号の位置に挿入することにならなければ[[MUST:なりません]]。 #en If the caret is positioned somewhere where phrasing content is not allowed (e.g. inside an empty ol element), then the user agent must not insert the text directly at the caret position. In such cases the behavior is UA-dependent, but user agents must not, in response to a request to insert text, generate a DOM that is less conformant than the DOM prior to the request. #ja 利用者エージェントは、脱字記号が語句付け内容の認められていない場所に位置付けられている場合 (例えば空の ol 要素の内側の場合)、 脱字記号の位置に直接文章を挿入しては[[MUST NOT:なりません]]。このような場合、 動作は利用者エージェント依存ですが、利用者エージェントは、 文章の挿入の要求に対して、要求以前の DOM よりも適合性の低い DOM を生成しては[[MUST NOT:なりません]]。 #en User agents should allow users to insert new paragraphs into elements that contains only content other than paragraphs. #ja 利用者エージェントは、利用者に、段落以外の内容だけを含む要素に新しい段落を挿入することを認める[[SHOULD:べきです]]。 #en For example, given the markup: #ja 例えば、次のマーク付けについて、 #en ...the user agent should allow the user to insert p elements before and after the dl element, as children of the section element. #ja ・・・利用者エージェントは、利用者が dl 要素の前後に p 要素を section 要素の子供として挿入することを認めるべきです。