#5413 - Much shorter solution for getting width/height in ie6

- #8255 Added support for the list attribute in browsers that support it (it is automatically readonly, but can be set if using getAttribute( name, 2)
This commit is contained in:
timmywil 2011-04-01 21:38:54 -04:00
parent 5fc2281fcc
commit 8cbf551a48
3 changed files with 10 additions and 16 deletions

View file

@ -75,7 +75,7 @@ test("prop(String, Object)", function() {
});
test("attr(String)", function() {
expect(30);
expect(31);
equals( jQuery('#text1').attr('type'), "text", 'Check for type attribute' );
equals( jQuery('#radio1').attr('type'), "radio", 'Check for type attribute' );
@ -108,6 +108,10 @@ test("attr(String)", function() {
jQuery('<a/>').attr({ 'id': 'tAnchor5', 'href': '#5' }).appendTo('#main');
equals( jQuery('#tAnchor5').attr('href'), "#5", 'Check for non-absolute href (an anchor)' );
// list attribute is readonly by default in browsers that support it
jQuery("#list-test").attr("list", "datalist");
equals( jQuery("#list-test").attr("list"), "datalist", "Check setting list attribute" );
// Related to [5574] and [5683]
var body = document.body, $body = jQuery(body);