Skip to content

Commit 5904c58

Browse files
committed
'editing is not supported' does not make sense for caretRangeFromPoint
1 parent 4a7fe41 commit 5904c58

2 files changed

Lines changed: 36 additions & 43 deletions

File tree

cssom-view/Overview.html

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727

2828
<h1 id=cssom-view-module>CSSOM View Module</h1>
2929

30-
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 27 July 2009</h2>
30+
<h2 class="no-num no-toc" id=w3c-doctype>Editor's Draft 28 July 2009</h2>
3131

3232
<dl>
3333
<dt>This Version:
3434

3535
<dd><a
36-
href="http://www.w3.org/TR/2009/ED-cssom-view-20090727/">http://www.w3.org/TR/2009/ED-cssom-view-20090727/</a>
36+
href="http://www.w3.org/TR/2009/ED-cssom-view-20090728/">http://www.w3.org/TR/2009/ED-cssom-view-20090728/</a>
3737

3838
<dt>Latest Version:
3939

@@ -590,10 +590,9 @@ <h2 id=the-documentview-interface><span class=secno>6 </span>The <code
590590
<var>x</var>,<var>y</var> in the <a href="#viewport">viewport</a>. If
591591
either argument is negative, <var title="">x</var> is greater than the <a
592592
href="#viewport">viewport</a> width, <var title="">y</var> is greather
593-
than the <a href="#viewport">viewport</a> height, no insertion point
594-
indicator would have been inserted, or editing is not supported, the
595-
method <em class=ct>must</em> return <code>null</code>. [<cite><a
596-
href="#ref-dom2tr">DOM2TR</a></cite>]
593+
than the <a href="#viewport">viewport</a> height, or no insertion point
594+
indicator would have been inserted, the method <em class=ct>must</em>
595+
return <code>null</code>. [<cite><a href="#ref-dom2tr">DOM2TR</a></cite>]
597596

598597
<p class=note>The specifics of hit testing are out of scope of this
599598
specification and therefore the exact details of <code><a
@@ -1146,13 +1145,11 @@ <h2 id=extensions-to-the-mouseevent-interface><span class=secno>10
11461145

11471146
readonly attribute long <a href="#dom-mouseevent-clientx">clientX</a>;
11481147
readonly attribute long <a href="#dom-mouseevent-clienty">clientY</a>;
1148+
readonly attribute long <a href="#dom-mouseevent-x" title=dom-mouseevent-x>x</a>;
1149+
readonly attribute long <a href="#dom-mouseevent-y" title=dom-mouseevent-y>y</a>;
11491150

11501151
readonly attribute long <a href="#dom-mouseevent-offsetx">offsetX</a>;
11511152
readonly attribute long <a href="#dom-mouseevent-offsety">offsetY</a>;
1152-
1153-
// historical; equivalent to clientX, clientY
1154-
readonly attribute long <a href="#dom-mouseevent-x" title=dom-mouseevent-x>x</a>;
1155-
readonly attribute long <a href="#dom-mouseevent-y" title=dom-mouseevent-y>y</a>;
11561153
};</pre>
11571154

11581155
<p>The <code>MouseEvent</code> interface is defined in DOM Level 2 Events.
@@ -1191,6 +1188,16 @@ <h2 id=extensions-to-the-mouseevent-interface><span class=secno>10
11911188
where the event occurred relative to the origin of the <a
11921189
href="#viewport">viewport</a>.
11931190

1191+
<p>The <dfn id=dom-mouseevent-x title=dom-mouseevent-x><code>x</code></dfn>
1192+
attribute, on getting, <em class=ct>must</em> return the value of <code><a
1193+
href="#dom-mouseevent-clientx">clientX</a></code>.
1194+
1195+
<p>The <dfn id=dom-mouseevent-y title=dom-mouseevent-y><code>y</code></dfn>
1196+
attribute, on getting, <em class=ct>must</em> return the value of <code><a
1197+
href="#dom-mouseevent-clienty">clientY</a></code>.</p>
1198+
<!-- x/y do not match IE in the position:relative case but do match other
1199+
browsers -->
1200+
11941201
<p>The <dfn id=dom-mouseevent-offsetx><code>offsetX</code></dfn> attribute,
11951202
on getting, <em class=ct>must</em> return the x-coordinate of the position
11961203
where the event occurred relative to the origin of the <a
@@ -1201,19 +1208,6 @@ <h2 id=extensions-to-the-mouseevent-interface><span class=secno>10
12011208
where the event occurred relative to the origin of the <a
12021209
href="#padding-edge">padding edge</a> of the target node.
12031210

1204-
<p>The <dfn id=dom-mouseevent-x title=dom-mouseevent-x><code>x</code></dfn>
1205-
attribute, on getting, <em class=ct>must</em> return the value of <code><a
1206-
href="#dom-mouseevent-clientx">clientX</a></code>.
1207-
1208-
<p>The <dfn id=dom-mouseevent-y title=dom-mouseevent-y><code>y</code></dfn>
1209-
attribute, on getting, <em class=ct>must</em> return the value of <code><a
1210-
href="#dom-mouseevent-clienty">clientY</a></code>.
1211-
1212-
<p class=note>The <code title=dom-mouseevent-x><a
1213-
href="#dom-mouseevent-x">x</a></code> and <code title=dom-mouseevent-y><a
1214-
href="#dom-mouseevent-y">y</a></code> attributes are included for
1215-
historical reasons.
1216-
12171211
<h2 id=rectangles><span class=secno>11 </span>Rectangles</h2>
12181212

12191213
<h3 id=the-clientrectlist-interface><span class=secno>11.1 </span>The <code

cssom-view/Overview.src.html

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,9 @@ <h2 id="the-documentview-interface">The <code title="">DocumentView</code> Inter
476476
<var>x</var>,<var>y</var> in the <span>viewport</span>. If either argument
477477
is negative, <var title="">x</var> is greater than the
478478
<span>viewport</span> width, <var title="">y</var> is greather than the
479-
<span>viewport</span> height, no insertion point indicator would have been
480-
inserted, or editing is not supported, the method <em class="ct">must</em>
481-
return <code>null</code>. [<cite><span>DOM2TR</span></cite>]</p>
479+
<span>viewport</span> height, or no insertion point indicator would have
480+
been inserted, the method <em class="ct">must</em> return
481+
<code>null</code>. [<cite><span>DOM2TR</span></cite>]</p>
482482

483483
<p class="note">The specifics of hit testing are out of scope of this
484484
specification and therefore the exact details of
@@ -976,13 +976,11 @@ <h2 id="extensions-to-the-mouseevent-interface">Extensions to the <code title=""
976976

977977
readonly attribute long <span>clientX</span>;
978978
readonly attribute long <span>clientY</span>;
979+
readonly attribute long <span title="dom-mouseevent-x">x</span>;
980+
readonly attribute long <span title="dom-mouseevent-y">y</span>;
979981

980982
readonly attribute long <span>offsetX</span>;
981983
readonly attribute long <span>offsetY</span>;
982-
983-
// historical; equivalent to clientX, clientY
984-
readonly attribute long <span title="dom-mouseevent-x">x</span>;
985-
readonly attribute long <span title="dom-mouseevent-y">y</span>;
986984
};</pre>
987985

988986
<p>The <code>MouseEvent</code> interface is defined in DOM Level 2 Events.
@@ -1022,16 +1020,6 @@ <h2 id="extensions-to-the-mouseevent-interface">Extensions to the <code title=""
10221020
attribute, on getting, <em class="ct">must</em> return the y-coordinate of
10231021
the position where the event occurred relative to the origin of the
10241022
<span>viewport</span>.</p>
1025-
1026-
<p>The <dfn id="dom-mouseevent-offsetx"><code>offsetX</code></dfn>
1027-
attribute, on getting, <em class="ct">must</em> return the x-coordinate of
1028-
the position where the event occurred relative to the origin of the
1029-
<span>padding edge</span> of the target node.</p>
1030-
1031-
<p>The <dfn id="dom-mouseevent-offsety"><code>offsetY</code></dfn>
1032-
attribute, on getting, <em class="ct">must</em> return the y-coordinate of
1033-
the position where the event occurred relative to the origin of the
1034-
<span>padding edge</span> of the target node.</p>
10351023

10361024
<p>The
10371025
<dfn id="dom-mouseevent-x" title="dom-mouseevent-x"><code>x</code></dfn>
@@ -1043,9 +1031,20 @@ <h2 id="extensions-to-the-mouseevent-interface">Extensions to the <code title=""
10431031
attribute, on getting, <em class="ct">must</em> return the value of
10441032
<code>clientY</code>.</p>
10451033

1046-
<p class="note">The <code title="dom-mouseevent-x">x</code> and
1047-
<code title="dom-mouseevent-y">y</code> attributes are included for
1048-
historical reasons.</p>
1034+
<!-- x/y do not match IE in the position:relative case but do match other
1035+
browsers -->
1036+
1037+
1038+
<p>The <dfn id="dom-mouseevent-offsetx"><code>offsetX</code></dfn>
1039+
attribute, on getting, <em class="ct">must</em> return the x-coordinate of
1040+
the position where the event occurred relative to the origin of the
1041+
<span>padding edge</span> of the target node.</p>
1042+
1043+
<p>The <dfn id="dom-mouseevent-offsety"><code>offsetY</code></dfn>
1044+
attribute, on getting, <em class="ct">must</em> return the y-coordinate of
1045+
the position where the event occurred relative to the origin of the
1046+
<span>padding edge</span> of the target node.</p>
1047+
10491048

10501049

10511050
<h2>Rectangles</h2>

0 commit comments

Comments
 (0)