Skip to content

Commit

Permalink
Add readonly getSelection().direction property.
Browse files Browse the repository at this point in the history
  • Loading branch information
rniwa committed Feb 9, 2023
1 parent 85d0e81 commit cd5148f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ <h2>
readonly attribute boolean isCollapsed;
readonly attribute unsigned long rangeCount;
readonly attribute DOMString type;
readonly attribute DOMString direction;
Range getRangeAt(unsigned long index);
undefined addRange(Range range);
undefined removeRange(Range range);
Expand Down Expand Up @@ -290,6 +291,17 @@ <h2>
`"Range"` otherwise.
</p>
</dd>
<dt>
<dfn>direction</dfn>
</dt>
<dd>
<p>
The attribute must return `"none"` if [=this=] is <a>empty</a> or
this selection is <a>directionless</a>. `"forward"` if this selection's
direction is <a>forwards</a> and `"backward"` if this selection's
direction is <a>backwards</a>.
</p>
</dd>
<dt>
<dfn>getRangeAt()</dfn> method
</dt>
Expand Down

0 comments on commit cd5148f

Please sign in to comment.