Skip to content

Commit fb8b527

Browse files
committed
xref dom-Element-*
1 parent 9f0315a commit fb8b527

2 files changed

Lines changed: 85 additions & 83 deletions

File tree

cssom-view/Overview.html

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -621,34 +621,34 @@ <h3 id="the-caretposition-interface"><span class="secno">5.1 </span>The <code ti
621621
<h2 id="extensions-to-the-element-interface"><span class="secno">6 </span>Extensions to the <code title="">Element</code> Interface</h2>
622622

623623
<pre class="idl">partial interface <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#element">Element</a> {
624-
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-element-getclientrects">getClientRects</a>();
625-
<a href="#clientrect">ClientRect</a> <a href="#dom-element-getboundingclientrect">getBoundingClientRect</a>();
624+
<a href="#clientrectlist">ClientRectList</a> <a href="#dom-element-getclientrects" title="dom-Element-getClientRects">getClientRects</a>();
625+
<a href="#clientrect">ClientRect</a> <a href="#dom-element-getboundingclientrect" title="dom-Element-getBoundingClientRect">getBoundingClientRect</a>();
626626

627627
// scrolling
628628
void <a href="#dom-element-scrollintoview" title="dom-Element-scrollIntoView">scrollIntoView</a>(optional boolean <var title="">top</var>);
629-
attribute long <a href="#dom-element-scrolltop">scrollTop</a>; // scroll on setting
630-
attribute long <a href="#dom-element-scrollleft">scrollLeft</a>; // scroll on setting
631-
readonly attribute long <a href="#dom-element-scrollwidth">scrollWidth</a>;
632-
readonly attribute long <a href="#dom-element-scrollheight">scrollHeight</a>;
633-
634-
readonly attribute long <a href="#dom-element-clienttop">clientTop</a>;
635-
readonly attribute long <a href="#dom-element-clientleft">clientLeft</a>;
636-
readonly attribute long <a href="#dom-element-clientwidth">clientWidth</a>;
637-
readonly attribute long <a href="#dom-element-clientheight">clientHeight</a>;
629+
attribute long <a href="#dom-element-scrolltop" title="dom-Element-scrollTop">scrollTop</a>; // scroll on setting
630+
attribute long <a href="#dom-element-scrollleft" title="dom-Element-scrollLeft">scrollLeft</a>; // scroll on setting
631+
readonly attribute long <a href="#dom-element-scrollwidth" title="dom-Element-scrollWidth">scrollWidth</a>;
632+
readonly attribute long <a href="#dom-element-scrollheight" title="dom-Element-scrollHeight">scrollHeight</a>;
633+
634+
readonly attribute long <a href="#dom-element-clienttop" title="dom-Element-clientTop">clientTop</a>;
635+
readonly attribute long <a href="#dom-element-clientleft" title="dom-Element-clientLeft">clientLeft</a>;
636+
readonly attribute long <a href="#dom-element-clientwidth" title="dom-Element-clientWidth">clientWidth</a>;
637+
readonly attribute long <a href="#dom-element-clientheight" title="dom-Element-clientHeight">clientHeight</a>;
638638
};</pre>
639639

640640

641641
<h3 id="the-getclientrects-and-getboundingclientrect-methods"><span class="secno">6.1 </span>The <code title="">getClientRects()</code> and
642642
<code title="">getBoundingClientRect()</code> methods</h3>
643643

644-
<p>The <code><a href="#dom-element-getclientrects">getClientRects()</a></code> and <code><a href="#dom-element-getboundingclientrect">getBoundingClientRect()</a></code>
644+
<p>The <code title="dom-Element-getClientRects"><a href="#dom-element-getclientrects">getClientRects()</a></code> and <code title="dom-Element-getBoundingClientRect"><a href="#dom-element-getboundingclientrect">getBoundingClientRect()</a></code>
645645
methods provide information about the position of the border box edges of
646646
an element relative to the viewport. The objects these methods return
647647
must be static. That is, changes to the underlying
648648
document are not reflected in the objects.</p>
649649

650650
<p>The
651-
<dfn id="dom-element-getclientrects"><code>getClientRects()</code></dfn>
651+
<dfn id="dom-element-getclientrects" title="dom-Element-getClientRects"><code>getClientRects()</code></dfn>
652652
method, when invoked, must return the result of the
653653
following algorithm:</p>
654654

@@ -688,14 +688,14 @@ <h3 id="the-getclientrects-and-getboundingclientrect-methods"><span class="secno
688688
</ol>
689689

690690
<p>The
691-
<dfn id="dom-element-getboundingclientrect"><code>getBoundingClientRect()</code></dfn>
691+
<dfn id="dom-element-getboundingclientrect" title="dom-Element-getBoundingClientRect"><code>getBoundingClientRect()</code></dfn>
692692
method, when invoked, must return the result of the
693693
following algorithm:</p>
694694

695695
<ol>
696696
<li><p>Let <var>list</var> be the result of invoking
697-
<code><a href="#dom-element-getclientrects">getClientRects()</a></code> on the same element this method was invoked
698-
on.</li>
697+
<code title="dom-Element-getClientRects"><a href="#dom-element-getclientrects">getClientRects()</a></code> on the
698+
same element this method was invoked on.</li>
699699

700700
<li><p>If the <var>list</var> is empty return a <code><a href="#clientrect">ClientRect</a></code>
701701
object whose <code title="dom-ClientRect-top"><a href="#dom-clientrect-top">top</a></code>,
@@ -810,7 +810,7 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
810810

811811

812812
<p>The
813-
<dfn id="dom-element-scrollintoview" title="dom-Element-scrollIntoView"><code>scrollIntoView([<var title="">top</var>])</code></dfn>
813+
<dfn id="dom-element-scrollintoview" title="dom-Element-scrollIntoView"><code>scrollIntoView([<var>top</var>])</code></dfn>
814814
method must run these steps:</p>
815815

816816
<ol>
@@ -823,7 +823,7 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
823823
</ol>
824824

825825

826-
<p>The <dfn id="dom-element-scrolltop"><code>scrollTop</code></dfn>
826+
<p>The <dfn id="dom-element-scrolltop" title="dom-Element-scrollTop"><code>scrollTop</code></dfn>
827827
attribute must return the result of running these
828828
steps:</p>
829829

@@ -845,8 +845,8 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
845845
element.</li>
846846
</ol>
847847

848-
<p>When setting the <code><a href="#dom-element-scrolltop">scrollTop</a></code> attribute these steps
849-
must be run:</p>
848+
<p>When setting the <code title="dom-Element-scrollTop"><a href="#dom-element-scrolltop">scrollTop</a></code>
849+
attribute these steps must be run:</p>
850850

851851
<ol>
852852
<li><p>Let <var title="">y</var> be the given value.</li>
@@ -868,10 +868,10 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
868868
argument and <var title="">y</var> as second.</li>
869869

870870
<li><p><a href="#scroll-an-element" title="scroll an element">Scroll the element</a> to
871-
<code><a href="#dom-element-scrollleft">scrollLeft</a></code>,<var title="">y</var>.</li>
871+
<code title="dom-Element-scrollLeft"><a href="#dom-element-scrollleft">scrollLeft</a></code>,<var title="">y</var>.
872872
</ol>
873873

874-
<p>The <dfn id="dom-element-scrollleft"><code>scrollLeft</code></dfn>
874+
<p>The <dfn id="dom-element-scrollleft" title="dom-Element-scrollLeft"><code>scrollLeft</code></dfn>
875875
attribute must return the result of running these
876876
steps:</p>
877877

@@ -893,7 +893,7 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
893893
element.</li>
894894
</ol>
895895

896-
<p>When setting the <code><a href="#dom-element-scrollleft">scrollLeft</a></code> attribute these steps
896+
<p>When setting the <code title="dom-Element-scrollLeft"><a href="#dom-element-scrollleft">scrollLeft</a></code> attribute these steps
897897
must be run:</p>
898898

899899
<ol>
@@ -916,10 +916,10 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
916916
<code title="dom-Window-scrollY"><a href="#dom-window-scrolly">scrollY</a></code> as second.</li>
917917

918918
<li><p><a href="#scroll-an-element" title="Scroll an element">Scroll the element</a> to
919-
<var title="">x</var>,<code><a href="#dom-element-scrolltop">scrollTop</a></code>.</li>
919+
<var title="">x</var>,<code title="dom-Element-scrollTop"><a href="#dom-element-scrolltop">scrollTop</a></code>.
920920
</ol>
921921

922-
<p>The <dfn id="dom-element-scrollwidth"><code>scrollWidth</code></dfn>
922+
<p>The <dfn id="dom-element-scrollwidth" title="dom-Element-scrollWidth"><code>scrollWidth</code></dfn>
923923
attribute must return the result of running these
924924
steps:</p>
925925

@@ -940,7 +940,7 @@ <h3 id="element-scrolling-members"><span class="secno">6.2 </span><code title=""
940940
plus the <a href="#content">content</a> width of the element.</li>
941941
</ol>
942942

943-
<p>The <dfn id="dom-element-scrollheight"><code>scrollHeight</code></dfn>
943+
<p>The <dfn id="dom-element-scrollheight" title="dom-Element-scrollHeight"><code>scrollHeight</code></dfn>
944944
attribute must return the result of running these
945945
steps:</p>
946946

@@ -968,33 +968,33 @@ <h3 id="client-attributes"><span class="secno">6.3 </span>The <code title="">cli
968968
<code title="">clientLeft</code>, <code title="">clientWidth</code>, and
969969
<code title="">clientHeight</code> attributes</h3>
970970

971-
<p>The <dfn id="dom-element-clienttop"><code>clientTop</code></dfn>,
972-
<dfn id="dom-element-clientleft"><code>clientLeft</code></dfn>,
973-
<dfn id="dom-element-clientwidth"><code>clientWidth</code></dfn>, and
974-
<dfn id="dom-element-clientheight"><code>clientHeight</code></dfn>
971+
<p>The <dfn id="dom-element-clienttop" title="dom-Element-clientTop"><code>clientTop</code></dfn>,
972+
<dfn id="dom-element-clientleft" title="dom-Element-clientLeft"><code>clientLeft</code></dfn>,
973+
<dfn id="dom-element-clientwidth" title="dom-Element-clientWidth"><code>clientWidth</code></dfn>, and
974+
<dfn id="dom-element-clientheight" title="dom-Element-clientHeight"><code>clientHeight</code></dfn>
975975
attributes must return zero if the element does not
976976
have any associated CSS layout box or if the CSS layout box is inline.
977977
Otherwise, these attributes must behave as defined in
978978
the remainder of this section.</p>
979979

980-
<p>The <code><a href="#dom-element-clienttop">clientTop</a></code> attribute returns the computed value of the
980+
<p>The <code title="dom-Element-clientTop"><a href="#dom-element-clienttop">clientTop</a></code> attribute returns the computed value of the
981981
'<code>border-top-width</code>' property plus the width of any scrollbar
982982
rendered between the top <a href="#padding-edge">padding edge</a> and the top
983983
<a href="#border-edge">border edge</a>.</p>
984984

985-
<p>The <code><a href="#dom-element-clientleft">clientLeft</a></code> attribute returns the computed
985+
<p>The <code title="dom-Element-clientLeft"><a href="#dom-element-clientleft">clientLeft</a></code> attribute returns the computed
986986
value of the '<code>border-left-width</code>' property plus the width of
987987
any scrollbar rendered between the left <a href="#padding-edge">padding edge</a> and the
988988
left <a href="#border-edge">border edge</a>.
989989

990-
<p>The <code><a href="#dom-element-clientwidth">clientWidth</a></code> attribute returns the
990+
<p>The <code title="dom-Element-clientWidth"><a href="#dom-element-clientwidth">clientWidth</a></code> attribute returns the
991991
<a href="#viewport">viewport</a> width excluding the size of a rendered scroll bar
992992
(if any) if the element is the root element and the
993993
width of the <a href="#padding-edge">padding edge</a> (excluding the width of any
994994
rendered scrollbar between the <a href="#padding-edge">padding edge</a> and the
995995
<a href="#border-edge">border edge</a>) otherwise.</p>
996996

997-
<p>The <code><a href="#dom-element-clientheight">clientHeight</a></code> attribute returns the
997+
<p>The <code title="dom-Element-clientHeight"><a href="#dom-element-clientheight">clientHeight</a></code> attribute returns the
998998
<a href="#viewport">viewport</a> height excluding the size of a rendered scroll bar
999999
(if any) if the element is the root element and the
10001000
height of the <a href="#padding-edge">padding edge</a> (excluding the width of any
@@ -1161,7 +1161,8 @@ <h2 id="extensions-to-the-range-interface"><span class="secno">8 </span>Extensio
11611161
<ul>
11621162
<li>For each element selected by the range, whose parent is not selected
11631163
by the range, include the border boxes returned by invoking
1164-
<code><a href="#dom-element-getclientrects">getClientRects()</a></code> on the element.</li>
1164+
<code title="dom-Element-getClientRects"><a href="#dom-element-getclientrects">getClientRects()</a></code> on the
1165+
element.</li>
11651166

11661167
<li>For each <code>Text</code> node selected or partially selected by the
11671168
range (including when the boundary-points are identical), include a

0 commit comments

Comments
 (0)