aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2006-12-11 09:22:33 +0000
committerJörn Zaefferer <joern.zaefferer@gmail.com>2006-12-11 09:22:33 +0000
commitdf61a63fca0bc7d1d3e3a0e7ec1e06ce2bd8fb53 (patch)
tree91a63f05671235a4fc299edbf8cf4d223b343b5f /src
parenta8bafe78745247dd13e3472582df29471e50aa28 (diff)
downloadjquery-df61a63fca0bc7d1d3e3a0e7ec1e06ce2bd8fb53.tar.gz
jquery-df61a63fca0bc7d1d3e3a0e7ec1e06ce2bd8fb53.zip
Fix for #467
Diffstat (limited to 'src')
-rw-r--r--src/jquery/jquery.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js
index 1efda2126..9f9aac66a 100644
--- a/src/jquery/jquery.js
+++ b/src/jquery/jquery.js
@@ -367,6 +367,10 @@ jQuery.fn = jQuery.prototype = {
/**
* Set a single property to a value, on all matched elements.
*
+ * Note that you can't set the name property of input elements in IE.
+ * Use $(html) or $().append(html) or $().html(html) to create elements
+ * on the fly including the name property.
+ *
* @example $("img").attr("src","test.jpg");
* @before <img/>
* @result <img src="test.jpg"/>
@@ -1300,7 +1304,8 @@ jQuery.extend({
ret = 'none';
else
jQuery.swap(elem, { display: 'block' }, function() {
- ret = document.defaultView.getComputedStyle(this,null).getPropertyValue(prop);
+ var c = document.defaultView.getComputedStyle(this, '');
+ ret = c && c.getPropertyValue(prop) || '';
});
}