css('display') works slightly differently in Safari. Also, the test suite having <input checked/> doesn't work in Safari, at all. Fixed to be standards compliant.
This commit is contained in:
parent
3672372c18
commit
3527e8f674
|
@ -39,8 +39,8 @@
|
|||
<input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
|
||||
<input type="radio" name="radio1" id="radio1"/>
|
||||
|
||||
<input type="radio" name="radio2" id="radio2" checked/>
|
||||
<input type="checkbox" name="check" id="check1" checked/>
|
||||
<input type="radio" name="radio2" id="radio2" checked="checked"/>
|
||||
<input type="checkbox" name="check" id="check1" checked="checked"/>
|
||||
<input type="checkbox" id="check2"/>
|
||||
|
||||
<input type="hidden" name="hidden" id="hidden1"/>
|
||||
|
@ -62,12 +62,12 @@
|
|||
<option id="option2a" value="">Nothing</option>
|
||||
<option id="option2b" value="1">1</option>
|
||||
<option id="option2c" value="2">2</option>
|
||||
<option id="option2d" selected value="3">3</option>
|
||||
<option id="option2d" selected="selected" value="3">3</option>
|
||||
</select>
|
||||
<select name="select3" id="select3" multiple="multiple">
|
||||
<option id="option3a" value="">Nothing</option>
|
||||
<option id="option3b" selected="selected" value="1">1</option>
|
||||
<option id="option3c" selected value="2">2</option>
|
||||
<option id="option3c" selected="selected" value="2">2</option>
|
||||
<option id="option3d" value="3">3</option>
|
||||
</select>
|
||||
</form>
|
||||
|
|
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -493,7 +493,7 @@ jQuery.fn = jQuery.prototype = {
|
|||
* representation of itself. Eg. fontWeight, fontSize, fontFamily, borderWidth,
|
||||
* borderStyle, borderBottomWidth etc.
|
||||
*
|
||||
* @test ok( $('#foo').css("display") == 'block', 'Check for css property "display"');
|
||||
* @test ok( $('#main').css("display") == 'none', 'Check for css property "display"');
|
||||
*
|
||||
* @name css
|
||||
* @type Object
|
||||
|
|
Loading…
Reference in a new issue