Skip to content

Commit 42fa0b3

Browse files
committed
cleanup MouseEvent xrefs; ClientRectList.item cannot be invoked with a negative int
1 parent e66221c commit 42fa0b3

2 files changed

Lines changed: 58 additions & 64 deletions

File tree

cssom-view/Overview.html

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,76 +1204,74 @@ <h2 id="extensions-to-the-range-interface"><span class="secno">8 </span>Extensio
12041204
<h2 id="extensions-to-the-mouseevent-interface"><span class="secno">9 </span>Extensions to the <code title="">MouseEvent</code> Interface</h2>
12051205

12061206
<pre class="idl">partial interface <a href="#mouseevent">MouseEvent</a> {
1207-
readonly attribute long <a href="#dom-mouseevent-screenx" title="dom-mouseevent-screenx">screenX</a>;
1208-
readonly attribute long <a href="#dom-mouseevent-screeny" title="dom-mouseevent-screeny">screenY</a>;
1207+
readonly attribute long <a href="#dom-mouseevent-screenx" title="dom-MouseEvent-screenX">screenX</a>;
1208+
readonly attribute long <a href="#dom-mouseevent-screeny" title="dom-MouseEvent-screenY">screenY</a>;
12091209

1210-
readonly attribute long <a href="#dom-mouseevent-pagex">pageX</a>;
1211-
readonly attribute long <a href="#dom-mouseevent-pagey">pageY</a>;
1210+
readonly attribute long <a href="#dom-mouseevent-pagex" title="dom-MouseEvent-pageX">pageX</a>;
1211+
readonly attribute long <a href="#dom-mouseevent-pagey" title="dom-MouseEvent-pageY">pageY</a>;
12121212

1213-
readonly attribute long <a href="#dom-mouseevent-clientx">clientX</a>;
1214-
readonly attribute long <a href="#dom-mouseevent-clienty">clientY</a>;
1215-
readonly attribute long <a href="#dom-mouseevent-x" title="dom-mouseevent-x">x</a>;
1216-
readonly attribute long <a href="#dom-mouseevent-y" title="dom-mouseevent-y">y</a>;
1213+
readonly attribute long <a href="#dom-mouseevent-clientx" title="dom-MouseEvent-clientX">clientX</a>;
1214+
readonly attribute long <a href="#dom-mouseevent-clienty" title="dom-MouseEvent-clientY">clientY</a>;
1215+
readonly attribute long <a href="#dom-mouseevent-x" title="dom-MouseEvent-x">x</a>;
1216+
readonly attribute long <a href="#dom-mouseevent-y" title="dom-MouseEvent-y">y</a>;
12171217

1218-
readonly attribute long <a href="#dom-mouseevent-offsetx">offsetX</a>;
1219-
readonly attribute long <a href="#dom-mouseevent-offsety">offsetY</a>;
1218+
readonly attribute long <a href="#dom-mouseevent-offsetx" title="dom-MouseEvent-offsetX">offsetX</a>;
1219+
readonly attribute long <a href="#dom-mouseevent-offsety" title="dom-MouseEvent-offsetY">offsetY</a>;
12201220
};</pre>
12211221

12221222
<p class="XXX">The object IDL fragment redefines some members. Can we
12231223
resolve this somehow?</p>
12241224

12251225
<p>The
1226-
<dfn id="dom-mouseevent-screenx" title="dom-mouseevent-screenx"><code title="dom-Window-screenX">screenX</code></dfn>
1226+
<dfn id="dom-mouseevent-screenx" title="dom-MouseEvent-screenX"><code>screenX</code></dfn>
12271227
attribute must return the x-coordinate of
12281228
the position where the event occurred relative to the origin of the
12291229
screen.</p>
12301230

12311231
<p>The
1232-
<dfn id="dom-mouseevent-screeny" title="dom-mouseevent-screeny"><code title="dom-Window-screenY">screenY</code></dfn>
1232+
<dfn id="dom-mouseevent-screeny" title="dom-MouseEvent-screenY"><code>screenY</code></dfn>
12331233
attribute must return the y-coordinate of
12341234
the position where the event occurred relative to the origin of the
12351235
screen.</p>
12361236

1237-
<p>The <dfn id="dom-mouseevent-pagex"><code>pageX</code></dfn> attribute
1237+
<p>The <dfn id="dom-mouseevent-pagex" title="dom-MouseEvent-pageX"><code>pageX</code></dfn> attribute
12381238
must return the horizontal coordinate of
12391239
the position where the event occurred relative to
12401240
the origin of the <a href="#initial-containing-block">initial containing block</a>.</p>
12411241

1242-
<p>The <dfn id="dom-mouseevent-pagey"><code>pageY</code></dfn> attribute
1242+
<p>The <dfn id="dom-mouseevent-pagey" title="dom-MouseEvent-pageY"><code>pageY</code></dfn> attribute
12431243
must return the y-coordinate of the
12441244
position where the event occurred relative to the origin of the
12451245
<a href="#initial-containing-block">initial containing block</a>.</p>
12461246

1247-
<p>The <dfn id="dom-mouseevent-clientx"><code>clientX</code></dfn>
1247+
<p>The <dfn id="dom-mouseevent-clientx" title="dom-MouseEvent-clientX"><code>clientX</code></dfn>
12481248
attribute must return the x-coordinate of
12491249
the position where the event occurred relative to the origin of the
12501250
<a href="#viewport">viewport</a>.</p>
12511251

1252-
<p>The <dfn id="dom-mouseevent-clienty"><code>clientY</code></dfn>
1252+
<p>The <dfn id="dom-mouseevent-clienty" title="dom-MouseEvent-clientY"><code>clientY</code></dfn>
12531253
attribute must return the y-coordinate of
12541254
the position where the event occurred relative to the origin of the
12551255
<a href="#viewport">viewport</a>.</p>
12561256

1257-
<p>The
1258-
<dfn id="dom-mouseevent-x" title="dom-mouseevent-x"><code>x</code></dfn>
1257+
<p>The <dfn id="dom-mouseevent-x" title="dom-MouseEvent-x&quot;"><code>x</code></dfn>
12591258
attribute must return the value of
1260-
<code><a href="#dom-mouseevent-clientx">clientX</a></code>.</p>
1259+
<code title="dom-MouseEvent-clientX"><a href="#dom-mouseevent-clientx">clientX</a></code>.</p>
12611260

1262-
<p>The
1263-
<dfn id="dom-mouseevent-y" title="dom-mouseevent-y"><code>y</code></dfn>
1261+
<p>The <dfn id="dom-mouseevent-y" title="dom-MouseEvent-y"><code>y</code></dfn>
12641262
attribute must return the value of
1265-
<code><a href="#dom-mouseevent-clienty">clientY</a></code>.</p>
1263+
<code title="dom-MouseEvent-clientY"><a href="#dom-mouseevent-clienty">clientY</a></code>.</p>
12661264

12671265
<!-- x/y do not match IE in the position:relative case but do match other
12681266
browsers -->
12691267

12701268

1271-
<p>The <dfn id="dom-mouseevent-offsetx"><code>offsetX</code></dfn>
1269+
<p>The <dfn id="dom-mouseevent-offsetx" title="dom-MouseEvent-offsetX"><code>offsetX</code></dfn>
12721270
attribute must return the x-coordinate of
12731271
the position where the event occurred relative to the origin of the
12741272
<a href="#padding-edge">padding edge</a> of the target node.</p>
12751273

1276-
<p>The <dfn id="dom-mouseevent-offsety"><code>offsetY</code></dfn>
1274+
<p>The <dfn id="dom-mouseevent-offsety" title="dom-MouseEvent-offsetY"><code>offsetY</code></dfn>
12771275
attribute must return the y-coordinate of
12781276
the position where the event occurred relative to the origin of the
12791277
<a href="#padding-edge">padding edge</a> of the target node.</p>
@@ -1291,23 +1289,22 @@ <h3 id="the-clientrectlist-interface"><span class="secno">10.1 </span>The <code
12911289
of <code><a href="#clientrect">ClientRect</a></code> objects.</p>
12921290

12931291
<pre class="idl">interface <dfn id="clientrectlist">ClientRectList</dfn> {
1294-
readonly attribute unsigned long <a href="#dom-clientrectlist-length" title="dom-clientrectlist-length">length</a>;
1295-
getter <a href="#clientrect">ClientRect</a> <a href="#dom-clientrectlist-item" title="dom-clientrectlist-item">item</a>(unsigned long <var title="">index</var>);
1292+
readonly attribute unsigned long <a href="#dom-clientrectlist-length" title="dom-ClientRectList-length">length</a>;
1293+
getter <a href="#clientrect">ClientRect</a> <a href="#dom-clientrectlist-item" title="dom-ClientRectList-item">item</a>(unsigned long <var title="">index</var>);
12961294
};</pre>
12971295

12981296
<p>The
1299-
<dfn id="dom-clientrectlist-length" title="dom-clientrectlist-length"><code>length</code></dfn>
1297+
<dfn id="dom-clientrectlist-length" title="dom-ClientRectList-length"><code>length</code></dfn>
13001298
attribute must return the total number of
13011299
<code><a href="#clientrect">ClientRect</a></code> objects associated with the object.</p>
13021300

13031301
<p>The
1304-
<dfn id="dom-clientrectlist-item" title="dom-clientrectlist-item"><code>item(<var title="">index</var>)</code></dfn>
1302+
<dfn id="dom-clientrectlist-item" title="dom-ClientRectList-item"><code>item(<var>index</var>)</code></dfn>
13051303
method, when invoked, must raise an
13061304
<code>INDEX_SIZE_ERR</code> exception when <var title="">index</var> is
1307-
negative or greater than the number of <code><a href="#clientrect">ClientRect</a></code> objects
1308-
associated with the object. Otherwise, the <code><a href="#clientrect">ClientRect</a></code>
1309-
object at <var title="">index</var> must be
1310-
returned.</p>
1305+
greater than the number of <code><a href="#clientrect">ClientRect</a></code> objects associated with
1306+
the object. Otherwise, the <code><a href="#clientrect">ClientRect</a></code> object at
1307+
<var title="">index</var> must be returned.</p>
13111308

13121309

13131310
<h3 id="the-clientrect-interface"><span class="secno">10.2 </span>The <code title="">ClientRect</code> Interface</h3>

cssom-view/Overview.src.html

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,76 +1175,74 @@ <h2 id="extensions-to-the-range-interface">Extensions to the <code title>Range</
11751175
<h2 id="extensions-to-the-mouseevent-interface">Extensions to the <code title>MouseEvent</code> Interface</h2>
11761176

11771177
<pre class="idl">partial interface <span>MouseEvent</span> {
1178-
readonly attribute long <span title="dom-mouseevent-screenx" title=dom-Window-screenX>screenX</span>;
1179-
readonly attribute long <span title="dom-mouseevent-screeny" title=dom-Window-screenY>screenY</span>;
1178+
readonly attribute long <span title=dom-MouseEvent-screenX>screenX</span>;
1179+
readonly attribute long <span title=dom-MouseEvent-screenY>screenY</span>;
11801180

1181-
readonly attribute long <span>pageX</span>;
1182-
readonly attribute long <span>pageY</span>;
1181+
readonly attribute long <span title=dom-MouseEvent-pageX>pageX</span>;
1182+
readonly attribute long <span title=dom-MouseEvent-pageY>pageY</span>;
11831183

1184-
readonly attribute long <span>clientX</span>;
1185-
readonly attribute long <span>clientY</span>;
1186-
readonly attribute long <span title="dom-mouseevent-x">x</span>;
1187-
readonly attribute long <span title="dom-mouseevent-y">y</span>;
1184+
readonly attribute long <span title=dom-MouseEvent-clientX>clientX</span>;
1185+
readonly attribute long <span title=dom-MouseEvent-clientY>clientY</span>;
1186+
readonly attribute long <span title="dom-MouseEvent-x">x</span>;
1187+
readonly attribute long <span title="dom-MouseEvent-y">y</span>;
11881188

1189-
readonly attribute long <span>offsetX</span>;
1190-
readonly attribute long <span>offsetY</span>;
1189+
readonly attribute long <span title=dom-MouseEvent-offsetX>offsetX</span>;
1190+
readonly attribute long <span title=dom-MouseEvent-offsetY>offsetY</span>;
11911191
};</pre>
11921192

11931193
<p class="XXX">The object IDL fragment redefines some members. Can we
11941194
resolve this somehow?</p>
11951195

11961196
<p>The
1197-
<dfn id="dom-mouseevent-screenx" title="dom-mouseevent-screenx"><code title=dom-Window-screenX>screenX</code></dfn>
1197+
<dfn title=dom-MouseEvent-screenX><code>screenX</code></dfn>
11981198
attribute must return the x-coordinate of
11991199
the position where the event occurred relative to the origin of the
12001200
screen.</p>
12011201

12021202
<p>The
1203-
<dfn id="dom-mouseevent-screeny" title="dom-mouseevent-screeny"><code title=dom-Window-screenY>screenY</code></dfn>
1203+
<dfn title=dom-MouseEvent-screenY><code>screenY</code></dfn>
12041204
attribute must return the y-coordinate of
12051205
the position where the event occurred relative to the origin of the
12061206
screen.</p>
12071207

1208-
<p>The <dfn id="dom-mouseevent-pagex"><code>pageX</code></dfn> attribute
1208+
<p>The <dfn title=dom-MouseEvent-pageX><code>pageX</code></dfn> attribute
12091209
must return the horizontal coordinate of
12101210
the position where the event occurred relative to
12111211
the origin of the <span>initial containing block</span>.</p>
12121212

1213-
<p>The <dfn id="dom-mouseevent-pagey"><code>pageY</code></dfn> attribute
1213+
<p>The <dfn title=dom-MouseEvent-pageY><code>pageY</code></dfn> attribute
12141214
must return the y-coordinate of the
12151215
position where the event occurred relative to the origin of the
12161216
<span>initial containing block</span>.</p>
12171217

1218-
<p>The <dfn id="dom-mouseevent-clientx"><code>clientX</code></dfn>
1218+
<p>The <dfn title=dom-MouseEvent-clientX><code>clientX</code></dfn>
12191219
attribute must return the x-coordinate of
12201220
the position where the event occurred relative to the origin of the
12211221
<span>viewport</span>.</p>
12221222

1223-
<p>The <dfn id="dom-mouseevent-clienty"><code>clientY</code></dfn>
1223+
<p>The <dfn title=dom-MouseEvent-clientY><code>clientY</code></dfn>
12241224
attribute must return the y-coordinate of
12251225
the position where the event occurred relative to the origin of the
12261226
<span>viewport</span>.</p>
12271227

1228-
<p>The
1229-
<dfn id="dom-mouseevent-x" title="dom-mouseevent-x"><code>x</code></dfn>
1228+
<p>The <dfn title=dom-MouseEvent-x"><code>x</code></dfn>
12301229
attribute must return the value of
1231-
<code>clientX</code>.</p>
1230+
<code title=dom-MouseEvent-clientX>clientX</code>.</p>
12321231

1233-
<p>The
1234-
<dfn id="dom-mouseevent-y" title="dom-mouseevent-y"><code>y</code></dfn>
1232+
<p>The <dfn title="dom-MouseEvent-y"><code>y</code></dfn>
12351233
attribute must return the value of
1236-
<code>clientY</code>.</p>
1234+
<code title=dom-MouseEvent-clientY>clientY</code>.</p>
12371235

12381236
<!-- x/y do not match IE in the position:relative case but do match other
12391237
browsers -->
12401238

12411239

1242-
<p>The <dfn id="dom-mouseevent-offsetx"><code>offsetX</code></dfn>
1240+
<p>The <dfn title=dom-MouseEvent-offsetX><code>offsetX</code></dfn>
12431241
attribute must return the x-coordinate of
12441242
the position where the event occurred relative to the origin of the
12451243
<span>padding edge</span> of the target node.</p>
12461244

1247-
<p>The <dfn id="dom-mouseevent-offsety"><code>offsetY</code></dfn>
1245+
<p>The <dfn title=dom-MouseEvent-offsetY><code>offsetY</code></dfn>
12481246
attribute must return the y-coordinate of
12491247
the position where the event occurred relative to the origin of the
12501248
<span>padding edge</span> of the target node.</p>
@@ -1262,23 +1260,22 @@ <h3 id="the-clientrectlist-interface">The <code title>ClientRectList</code> Inte
12621260
of <code>ClientRect</code> objects.</p>
12631261

12641262
<pre class="idl">interface <dfn>ClientRectList</dfn> {
1265-
readonly attribute unsigned long <span title="dom-clientrectlist-length">length</span>;
1266-
getter <span>ClientRect</span> <span title="dom-clientrectlist-item">item</span>(unsigned long <var title>index</var>);
1263+
readonly attribute unsigned long <span title="dom-ClientRectList-length">length</span>;
1264+
getter <span>ClientRect</span> <span title="dom-ClientRectList-item">item</span>(unsigned long <var title>index</var>);
12671265
};</pre>
12681266

12691267
<p>The
1270-
<dfn id="dom-clientrectlist-length" title="dom-clientrectlist-length"><code>length</code></dfn>
1268+
<dfn title="dom-ClientRectList-length"><code>length</code></dfn>
12711269
attribute must return the total number of
12721270
<code>ClientRect</code> objects associated with the object.</p>
12731271

12741272
<p>The
1275-
<dfn id="dom-clientrectlist-item" title="dom-clientrectlist-item"><code>item(<var title>index</var>)</code></dfn>
1273+
<dfn title="dom-ClientRectList-item"><code>item(<var>index</var>)</code></dfn>
12761274
method, when invoked, must raise an
12771275
<code>INDEX_SIZE_ERR</code> exception when <var title>index</var> is
1278-
negative or greater than the number of <code>ClientRect</code> objects
1279-
associated with the object. Otherwise, the <code>ClientRect</code>
1280-
object at <var title>index</var> must be
1281-
returned.</p>
1276+
greater than the number of <code>ClientRect</code> objects associated with
1277+
the object. Otherwise, the <code>ClientRect</code> object at
1278+
<var title>index</var> must be returned.</p>
12821279

12831280

12841281
<h3 id="the-clientrect-interface">The <code title>ClientRect</code> Interface</h3>

0 commit comments

Comments
 (0)