mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Some minor cleanup of the last commit.
This commit is contained in:
parent
97d468fbf0
commit
d558e9eb6f
@ -164,7 +164,7 @@ jQuery.fn.extend({
|
|||||||
var option = options[ i ];
|
var option = options[ i ];
|
||||||
|
|
||||||
// Don't return options that are disabled or in a disabled optgroup
|
// Don't return options that are disabled or in a disabled optgroup
|
||||||
if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
|
if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
|
||||||
(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
|
(!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
|
||||||
|
|
||||||
// Get the specific value for the option
|
// Get the specific value for the option
|
||||||
|
@ -13,16 +13,15 @@
|
|||||||
div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
|
div.innerHTML = " <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
|
||||||
|
|
||||||
var all = div.getElementsByTagName("*"),
|
var all = div.getElementsByTagName("*"),
|
||||||
a = div.getElementsByTagName("a")[0];
|
a = div.getElementsByTagName("a")[0],
|
||||||
|
select = document.createElement("select"),
|
||||||
|
opt = select.appendChild( document.createElement("option") );
|
||||||
|
|
||||||
// Can't get basic test support
|
// Can't get basic test support
|
||||||
if ( !all || !all.length || !a ) {
|
if ( !all || !all.length || !a ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var select = document.createElement("select");
|
|
||||||
var opt = select.appendChild( document.createElement("option") );
|
|
||||||
|
|
||||||
jQuery.support = {
|
jQuery.support = {
|
||||||
// IE strips leading whitespace when .innerHTML is used
|
// IE strips leading whitespace when .innerHTML is used
|
||||||
leadingWhitespace: div.firstChild.nodeType === 3,
|
leadingWhitespace: div.firstChild.nodeType === 3,
|
||||||
|
Loading…
Reference in New Issue
Block a user