You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cssom-view-1/Overview.bs
+7-12Lines changed: 7 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1070,9 +1070,6 @@ result of running these steps:
1070
1070
<dt><a>caret offset</a>
1071
1071
<dd>The amount of 16-bit units to the left of where the
1072
1072
text insertion point indicator would have inserted.
1073
-
1074
-
<dt><a>caret range</a>
1075
-
<dd>null
1076
1073
</dl>
1077
1074
1. Otherwise:
1078
1075
@@ -1085,7 +1082,8 @@ result of running these steps:
1085
1082
1. Return a <a>caret position</a> with its properties set as follows:
1086
1083
1. <a>caret node</a> is set to <var>startNode</var>.
1087
1084
1. <a>caret offset</a> is set to <var>startOffset</var>.
1088
-
1. <a>caret range</a> is set to a collapsed {{Range}} object which [=range/start node=] and [=range/end node=] are <var>startNode</var>, and which [=range/start offset=] and [=range/end offset=] are <var>startOffset</var>.
1085
+
1086
+
Note: This <a>caret position</a> is not <a spec=html>live</a>.
1089
1087
1090
1088
Note: The specifics of hit testing are out of scope of this
1091
1089
specification and therefore the exact details of
@@ -1118,7 +1116,7 @@ in that the latter can return a <code>frameset</code> element.
A <dfn>caret position</dfn> gives the position of a text insertion point indicator. It always has an associated
1121
-
<dfn>caret node</dfn>, <dfn>caret offset</dfn>, and <dfn>caret range</dfn>. It is represented by a {{CaretPosition}} object.
1119
+
<dfn>caret node</dfn>and <dfn>caret offset</dfn>. It is represented by a {{CaretPosition}} object.
1122
1120
1123
1121
<pre class=idl>
1124
1122
[Exposed=Window]
@@ -1136,20 +1134,17 @@ The <dfn attribute for=CaretPosition>offset</dfn> attribute must return the <a>c
1136
1134
The <dfn method for=CaretPosition>getClientRect()</dfn> method must follow these steps,
1137
1135
aborting on the first step that returns a value:
1138
1136
1139
-
1. If <a>caret range</a> is not null:
1140
-
1. Let <var>list</var> be the result of invoking the {{Range/getClientRects()}} method on the range.
1141
-
1. If <var>list</var> is empty, return null.
1142
-
1. Return the {{DOMRect}} object in <var>list</var> at index 0.
1143
1137
1. If <a>caret node</a> is a text entry widget that is a replaced element,
1144
1138
and that is in the document,
1145
1139
return a [=scaled=]{{DOMRect}} object for the caret in the widget
1146
1140
as represented by the <a>caret offset</a> value.
1147
1141
The <a>transforms</a> that apply to the element and its ancestors are applied.
1148
-
1. Return null.
1142
+
1. Otherwise:
1149
1143
1150
-
Note: This {{DOMRect}} object is not <a spec=html>live</a>.
1144
+
1. Let <var>caretRange</var> be a collapsed {{Range}} object whose [=range/start node=] and [=range/end node=] are set to <a>caret node</a>, and whose [=range/start offset=] and [=range/end offset=] are set to <a>caret offset</a>.
1145
+
1. Return the {{DOMRect}} object which is the result of invoking the {{Range/getBoundingClientRect()}} method on <var>caretRange</var>.
1151
1146
1152
-
Issue(10230): Consider removing <a>caret range</a> concept from <a>caret position</a> interface.
1147
+
Note: This {{DOMRect}} object is not <a spec=html>live</a>.
0 commit comments