@@ -2316,7 +2316,7 @@ <h3 id=the-documentlayout><span class=secno>4.2. </span>The <code><a
23162316
23172317 < pre class =idl > interface < dfn id =documentlayout > DocumentLayout</ dfn > {
23182318 Element < a href ="#documentlayout-elementfrompoint " title =documentlayout-elementfrompoint > elementFromPoint</ a > (in unsigned long < var title =""> x</ var > , in unsigned long < var title =""> y</ var > );
2319- }</ pre >
2319+ }; </ pre >
23202320
23212321 < p > The < dfn id =documentlayout-elementfrompoint
23222322 title =documentlayout-elementfrompoint > < code > elementFromPoint(< var
@@ -2334,24 +2334,24 @@ <h3 id=the-elementlayout><span class=secno>4.3. </span>The <code><a
23342334 href ="#elementlayout "> ElementLayout</ a > </ code > interface. [DOM3Core]
23352335
23362336 < pre class =idl > interface < dfn id =elementlayout > ElementLayout</ dfn > {
2337- < a href ="#textrectanglelist "> TextRectangleList</ a > < a href ="#elementlayout-getclientrects "> getClientRects</ a > ();
2338- < a href ="#textrectangle "> TextRectangle</ a > < a href ="#elementlayout-getboundingclientrect "> getBoundingClientRect</ a > ();
2339-
2340- readonly attribute float < a href ="#elementlayout-offsettop "> offsetTop</ a > ;
2341- readonly attribute float < a href ="#elementlayout-offsetleft "> offsetLeft</ a > ;
2342- readonly attribute float < a href ="#elementlayout-offsetwidth "> offsetWidth</ a > ;
2343- readonly attribute float < a href ="#elementlayout-offsetheight "> offsetHeight</ a > ;
2344- readonly attribute HTMLElement < a href ="#elementlayout-offsetparent "> offsetParent</ a > ; // HTMLElement
2345-
2346- attribute float < span > scrollTop</ span > ; // scroll on setting
2347- attribute float < span > scrollLeft</ span > ; // scroll on setting
2348- readonly attribute float < span > scrollWidth</ span > ;
2349- readonly attribute float < span > scrollHeight</ span > ;
2350-
2351- readonly attribute float < a href ="#elementlayout-clienttop "> clientTop</ a > ;
2352- readonly attribute float < a href ="#elementlayout-clientleft "> clientLeft</ a > ;
2353- readonly attribute float < a href ="#elementlayout-clientwidth "> clientWidth</ a > ;
2354- readonly attribute float < a href ="#elementlayout-clientheight "> clientHeight</ a > ;
2337+ < a href ="#textrectanglelist "> TextRectangleList</ a > < a href ="#elementlayout-getclientrects "> getClientRects</ a > ();
2338+ < a href ="#textrectangle "> TextRectangle</ a > < a href ="#elementlayout-getboundingclientrect "> getBoundingClientRect</ a > ();
2339+
2340+ readonly attribute float < a href ="#elementlayout-offsettop "> offsetTop</ a > ;
2341+ readonly attribute float < a href ="#elementlayout-offsetleft "> offsetLeft</ a > ;
2342+ readonly attribute float < a href ="#elementlayout-offsetwidth "> offsetWidth</ a > ;
2343+ readonly attribute float < a href ="#elementlayout-offsetheight "> offsetHeight</ a > ;
2344+ readonly attribute HTMLElement < a href ="#elementlayout-offsetparent "> offsetParent</ a > ; // HTMLElement
2345+
2346+ attribute float < span > scrollTop</ span > ; // scroll on setting
2347+ attribute float < span > scrollLeft</ span > ; // scroll on setting
2348+ readonly attribute float < span > scrollWidth</ span > ;
2349+ readonly attribute float < span > scrollHeight</ span > ;
2350+
2351+ readonly attribute float < a href ="#elementlayout-clienttop "> clientTop</ a > ;
2352+ readonly attribute float < a href ="#elementlayout-clientleft "> clientLeft</ a > ;
2353+ readonly attribute float < a href ="#elementlayout-clientwidth "> clientWidth</ a > ;
2354+ readonly attribute float < a href ="#elementlayout-clientheight "> clientHeight</ a > ;
23552355};</ pre >
23562356
23572357 < h4 id =the-getclientrects > < span class =secno > 4.3.1. </ span > The < code > < a
@@ -2365,17 +2365,18 @@ <h4 id=the-getclientrects><span class=secno>4.3.1. </span>The <code><a
23652365
23662366 < p > The < dfn
23672367 id =elementlayout-getclientrects > < code > getClientRects()</ code > </ dfn > method
2368- of element < var > A </ var > < em class =ct > must</ em > return a < code > < a
2368+ < em class =ct > must</ em > , when invoked, return a < code > < a
23692369 href ="#textrectanglelist "> TextRectangleList</ a > </ code > object containing a
23702370 list of < code > < a href ="#textrectangle "> TextRectangle</ a > </ code > objects
2371- describing the border boxes for < var > A </ var > .
2371+ describing the border boxes for the element on which it was invoked .
23722372
23732373 < p > The < dfn
23742374 id =elementlayout-getboundingclientrect > < code > getBoundingClientRect()</ code > </ dfn >
2375- method of element < var > A </ var > < em class =ct > must</ em > return a union of
2376- the rectangles returned by < code > < a
2375+ method < em class =ct > must</ em > , when invoked, return a union of the
2376+ rectangles returned by < code > < a
23772377 href ="#elementlayout-getclientrects "> getClientRects()</ a > </ code > in a
2378- < code > < a href ="#textrectangle "> TextRectangle</ a > </ code > object.
2378+ single < code > < a href ="#textrectangle "> TextRectangle</ a > </ code > object for
2379+ the element on which it was invoked.
23792380
23802381 < p > The values of the attributes of the < code > < a
23812382 href ="#textrectangle "> TextRectAngle</ a > </ code > object < em
@@ -2420,64 +2421,61 @@ <h5 id=the-textrectanglelist><span class=secno>4.3.1.1. </span>The <code><a
24202421
24212422 < pre
24222423 class =idl > interface < dfn id =textrectanglelist > TextRectangleList</ dfn > {
2423- readonly attribute unsigned long < a href ="#textrectanglelist-length " title =textrectanglelist-length > length</ a > ;
2424- < a href ="#textrectangle "> TextRectangle</ a > < a href ="#textrectanglelist-item " title =textrectanglelist-item > item</ a > (in unsigned long < var title =""> index</ var > );
2424+ readonly attribute unsigned long < a href ="#textrectanglelist-length " title =textrectanglelist-length > length</ a > ;
2425+ < a href ="#textrectangle "> TextRectangle</ a > < a href ="#textrectanglelist-item " title =textrectanglelist-item > item</ a > (in unsigned long < var title =""> index</ var > );
24252426};</ pre >
24262427
2427- < dl class =members >
2428- < dt > < dfn id =textrectanglelist-length
2429- title =textrectanglelist-length > < code > length</ code > of type < code > unsigned
2430- long</ code > , readonly</ dfn >
2431-
2432- < dd > This attribute < em class =ct > must</ em > return the number of < code > < a
2433- href ="#textrectangle "> TextRectangle</ a > </ code > objects associated with
2434- the object.
2435-
2436- < dt > < dfn id =textrectanglelist-item
2437- title =textrectanglelist-item > < code > item(< var
2438- title =""> index</ var > )</ code > , method</ dfn >
2439-
2440- < dd > When invoked, if < var title =""> index</ var > is negative or greater than
2441- the number of < code > < a href ="#textrectangle "> TextRectangle</ a > </ code >
2442- objects associated with the object an < code > INDEX_SIZE_ERR</ code >
2443- exception < em class =ct > must</ em > be raised. Otherwise, the < code > < a
2444- href ="#textrectangle "> TextRectangle</ a > </ code > object at < var
2445- title =""> index</ var > < em class =ct > must</ em > be returned.
2446- </ dl >
2428+ < p > The < dfn id =textrectanglelist-length
2429+ title =textrectanglelist-length > < code > length</ code > attribute < em
2430+ class =ct > must</ em > return the number of < code > TextRectangle</ code > objects
2431+ associated with the object.</ dfn >
2432+
2433+ < p > The < dfn id =textrectanglelist-item
2434+ title =textrectanglelist-item > < code > item(< var
2435+ title =""> index</ var > )</ code > </ dfn > method, when invoked, < em
2436+ class =ct > must</ em > raise an < code > INDEX_SIZE_ERR</ code > exception when
2437+ < var title =""> index</ var > is negative or greater than the number of
2438+ < code > < a href ="#textrectangle "> TextRectangle</ a > </ code > objects associated
2439+ with the object. Otherwise, the < code > < a
2440+ href ="#textrectangle "> TextRectangle</ a > </ code > object at < var
2441+ title =""> index</ var > < em class =ct > must</ em > be returned.
2442+
2443+ < p > In ECMAScript implementations, objects that implement the < code > < a
2444+ href ="#textrectanglelist "> TextRectangleList</ a > </ code > interface < em
2445+ class =ct > must</ em > also have a < code > [[Get]]</ code > method that, when
2446+ invoked with a number, acts like the < code title =textrectanglelist-item > < a
2447+ href ="#textrectanglelist-item "> item()</ a > </ code > method would when invoked
2448+ with that argument.
24472449
24482450 < h5 id =the-textrectangle > < span class =secno > 4.3.1.2. </ span > The < code > < a
24492451 href ="#textrectangle "> TextRectangle</ a > </ code > Interface</ h5 >
24502452
24512453 < pre class =idl > interface < dfn id =textrectangle > TextRectangle</ dfn > {
2452- readonly attribute float < a href ="#textrectangle-top " title =textrectangle-top > top</ a > ;
2453- readonly attribute float < a href ="#textrectangle-right " title =textrectangle-right > right</ a > ;
2454- readonly attribute float < a href ="#textrectangle-bottom " title =textrectangle-bottom > bottom</ a > ;
2455- readonly attribute float < a href ="#textrectangle-left " title =textrectangle-left > left</ a > ;
2454+ readonly attribute float < a href ="#textrectangle-top " title =textrectangle-top > top</ a > ;
2455+ readonly attribute float < a href ="#textrectangle-right " title =textrectangle-right > right</ a > ;
2456+ readonly attribute float < a href ="#textrectangle-bottom " title =textrectangle-bottom > bottom</ a > ;
2457+ readonly attribute float < a href ="#textrectangle-left " title =textrectangle-left > left</ a > ;
24562458}</ pre >
24572459
2458- < dl class =members >
2459- < dt > < dfn id =textrectangle-top title =textrectangle-top > < code > top</ code > of
2460- type < code > float</ code > , readonly</ dfn >
2461-
2462- < dd > ...
2463-
2464- < dt > < dfn id =textrectangle-right
2465- title =textrectangle-right > < code > right</ code > of type < code > float</ code > ,
2466- readonly</ dfn >
2467-
2468- < dd > ...
2469-
2470- < dt > < dfn id =textrectangle-bottom
2471- title =textrectangle-bottom > < code > bottom</ code > of type
2472- < code > float</ code > , readonly</ dfn >
2473-
2474- <
232D
dd > ...
2475-
2476- < dt > < dfn id =textrectangle-left title =textrectangle-left > < code > left</ code >
2477- of type < code > float</ code > , readonly</ dfn >
2478-
2479- < dd > ...
2480- </ dl >
2460+ < p > The < dfn id =textrectangle-top
2461+ title =textrectangle-top > < code > top</ code > </ dfn > attribute, on getting, < em
2462+ class =ct > must</ em > return the distance between the top of the viewport and
2463+ the top of the rectangle box.
2464+
2465+ < p > The < dfn id =textrectangle-right
2466+ title =textrectangle-right > < code > right</ code > </ dfn > attribute, on getting,
2467+ < em class =ct > must</ em > return the distance between the left of the
2468+ viewport and the right of the rectangle box.
2469+
2470+ < p > The < dfn id =textrectangle-bottom
2471+ title =textrectangle-bottom > < code > bottom</ code > </ dfn > attribute, on
2472+ getting, < em class =ct > must</ em > return the distance between the top of the
2473+ viewport and the bottom of the rectangle box.
2474+
2475+ < p > The < dfn id =textrectangle-left
2476+ title =textrectangle-left > < code > left</ code > </ dfn > attribute, on getting,
2477+ < em class =ct > must</ em > return the distance between the left of the
2478+ viewport and the left of the rectangle box.
24812479
24822480 < h4 id =the-offset > < span class =secno > 4.3.2. </ span > The
24832481 < code > offset< var > *</ var > </ code > attributes</ h4 >
0 commit comments