Skip to content

Commit 10f0f86

Browse files
AurelioDeRosakswedberg
authored andcommitted
visible selector: Add note that option elements are always considered hidden. Closes jquery#522
1 parent 3cb7ccf commit 10f0f86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

entries/visible-selector.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
<longdesc>
1010
<p>Elements are considered visible if they consume space in the document. Visible elements have a width or height that is greater than zero.</p>
1111
<p>Elements with <code>visibility: hidden</code> or <code>opacity: 0</code> are considered visible, since they still consume space in the layout.</p>
12-
<p>Elements that are not in a document are considered to be hidden; jQuery does not have a way to know if they will be visible when appended to a document since it depends on the applicable styles.</p>
13-
<p>During animations that hide an element, the element is considered to be visible until the end of the animation. During animations to show an element, the element is considered to be visible at the start at the animation.</p>
12+
<p>Elements that are not in a document are considered hidden; jQuery does not have a way to know if they will be visible when appended to a document since it depends on the applicable styles.</p>
13+
<p>All <code>option</code> elements are considered hidden, regardless of their <code>selected</code> state.</p>
14+
<p>During animations that hide an element, the element is considered visible until the end of the animation. During animations to show an element, the element is considered visible at the start at the animation.</p>
1415
<p>How <code>:visible</code> is calculated was changed in jQuery 1.3.2. The <a href="http://blog.jquery.com/2009/02/20/jquery-1-3-2-released/">release notes</a> outline the changes in more detail.</p>
1516
</longdesc>
1617
<note id="jquery-selector-extension" type="additional" data-selector=":visible"/>

0 commit comments

Comments
 (0)