Commit 3527e8f6 authored by John Resig's avatar John Resig

css('display') works slightly differently in Safari. Also, the test suite...

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.
parent 3672372c
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
<input type="text" name="text2" value="Test" id="text2" disabled="disabled"/> <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
<input type="radio" name="radio1" id="radio1"/> <input type="radio" name="radio1" id="radio1"/>
<input type="radio" name="radio2" id="radio2" checked/> <input type="radio" name="radio2" id="radio2" checked="checked"/>
<input type="checkbox" name="check" id="check1" checked/> <input type="checkbox" name="check" id="check1" checked="checked"/>
<input type="checkbox" id="check2"/> <input type="checkbox" id="check2"/>
<input type="hidden" name="hidden" id="hidden1"/> <input type="hidden" name="hidden" id="hidden1"/>
...@@ -62,12 +62,12 @@ ...@@ -62,12 +62,12 @@
<option id="option2a" value="">Nothing</option> <option id="option2a" value="">Nothing</option>
<option id="option2b" value="1">1</option> <option id="option2b" value="1">1</option>
<option id="option2c" value="2">2</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>
<select name="select3" id="select3" multiple="multiple"> <select name="select3" id="select3" multiple="multiple">
<option id="option3a" value="">Nothing</option> <option id="option3a" value="">Nothing</option>
<option id="option3b" selected="selected" value="1">1</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> <option id="option3d" value="3">3</option>
</select> </select>
</form> </form>
......
...@@ -493,7 +493,7 @@ jQuery.fn = jQuery.prototype = { ...@@ -493,7 +493,7 @@ jQuery.fn = jQuery.prototype = {
* representation of itself. Eg. fontWeight, fontSize, fontFamily, borderWidth, * representation of itself. Eg. fontWeight, fontSize, fontFamily, borderWidth,
* borderStyle, borderBottomWidth etc. * 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 * @name css
* @type Object * @type Object
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment