Skip to content

Commit

Permalink
Dimensions: Document empty-context getters
Browse files Browse the repository at this point in the history
Fixes gh-997
Closes gh-998
  • Loading branch information
gibson042 committed Nov 14, 2016
1 parent 9c1e809 commit 3aa71f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion entries/innerHeight.xml
Expand Up @@ -9,7 +9,7 @@
</signature>
<desc>Get the current computed height for the first element in the set of matched elements, including padding but not border.</desc>
<longdesc>
<p>This method returns the height of the element, including top and bottom padding, in pixels.</p>
<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>
<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>
<figure>
<img src="/resources/0042_04_02.png"/>
Expand Down
2 changes: 1 addition & 1 deletion entries/innerWidth.xml
Expand Up @@ -8,7 +8,7 @@
</signature>
<desc>Get the current computed inner width for the first element in the set of matched elements, including padding but not border.</desc>
<longdesc>
<p>This method returns the width of the element, including left and right padding, in pixels.</p>
<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>
<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>
<figure>
<img src="/resources/0042_04_05.png"/>
Expand Down
2 changes: 1 addition & 1 deletion entries/outerHeight.xml
Expand Up @@ -11,7 +11,7 @@
</signature>
<desc>Get the current computed outer height (including padding, border, and optionally margin) for the first element in the set of matched elements.</desc>
<longdesc>
<p>Returns the height of the element, including top and bottom padding, border, and optionally margin, in pixels.</p>
<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>
<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>
<figure>
<img src="/resources/0042_04_03.png"/>
Expand Down
2 changes: 1 addition & 1 deletion entries/outerWidth.xml
Expand Up @@ -11,7 +11,7 @@
</signature>
<desc>Get the current computed outer width (including padding, border, and optionally margin) for the first element in the set of matched elements.</desc>
<longdesc>
<p>Returns the width of the element, including left and right padding, border, and optionally margin, in pixels.</p>
<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>
<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>
<figure>
<img src="/resources/0042_04_06.png"/>
Expand Down

0 comments on commit 3aa71f2

Please sign in to comment.