Skip to content

Commit 3aa71f2

Browse files
committed
Dimensions: Document empty-context getters
Fixes jquerygh-997 Closes jquerygh-998
1 parent 9c1e809 commit 3aa71f2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

entries/innerHeight.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</signature>
1010
<desc>Get the current computed height for the first element in the set of matched elements, including padding but not border.</desc>
1111
<longdesc>
12-
<p>This method returns the height of the element, including top and bottom padding, in pixels.</p>
12+
<p>This method returns the height of the element, including top and bottom padding, in pixels. If called on an empty set of elements, returns <code>undefined</code> (<code>null</code> before jQuery 3.0).</p>
1313
<p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href="/height/">.height()</a></code> instead.</p>
1414
<figure>
1515
<img src="/resources/0042_04_02.png"/>

entries/innerWidth.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</signature>
99
<desc>Get the current computed inner width for the first element in the set of matched elements, including padding but not border.</desc>
1010
<longdesc>
11-
<p>This method returns the width of the element, including left and right padding, in pixels.</p>
11+
<p>This method returns the width of the element, including left and right padding, in pixels. If called on an empty set of elements, returns <code>undefined</code> (<code>null</code> before jQuery 3.0).</p>
1212
<p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href="/width/">.width()</a></code> instead.</p>
1313
<figure>
1414
<img src="/resources/0042_04_05.png"/>

entries/outerHeight.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</signature>
1212
<desc>Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements.</desc>
1313
<longdesc>
14-
<p>Returns the height of the element, including top and bottom padding, border, and optionally margin, in pixels.</p>
14+
<p>Returns the height of the element, including top and bottom padding, border, and optionally margin, in pixels. If called on an empty set of elements, returns <code>undefined</code> (<code>null</code> before jQuery 3.0).</p>
1515
<p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href="/height/">.height()</a></code> instead. Although <code>.outerHeight()</code> can be used on table elements, it may give unexpected results on tables using the <code>border-collapse: collapse</code> CSS property.</p>
1616
<figure>
1717
<img src="/resources/0042_04_03.png"/>

entries/outerWidth.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</signature>
1212
<desc>Get the current computed outer width (including padding, border, and optionally margin) for the first element in the set of matched elements.</desc>
1313
<longdesc>
14-
<p>Returns the width of the element, including left and right padding, border, and optionally margin, in pixels.</p>
14+
<p>Returns the width of the element, including left and right padding, border, and optionally margin, in pixels. If called on an empty set of elements, returns <code>undefined</code> (<code>null</code> before jQuery 3.0).</p>
1515
<p>This method is not applicable to <code>window</code> and <code>document</code> objects; for these, use <code><a href="/width/">.width()</a></code> instead. Although <code>.outerWidth()</code> can be used on table elements, it may give unexpected results on tables using the <code>border-collapse: collapse</code> CSS property.</p>
1616
<figure>
1717
<img src="/resources/0042_04_06.png"/>

0 commit comments

Comments
 (0)