git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed #2037 where Opera would mis-state the value of 'display' after an innerHTML...
[jquery.git]
/
src
/
core.js
diff --git
a/src/core.js
b/src/core.js
index
7ac4ad7
..
c7f30d6
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-816,6
+816,12
@@
jQuery.extend({
"1" :
ret;
}
"1" :
ret;
}
+ // Opera sometimes will give the wrong display answer, this fixes it, see #2037
+ if ( jQuery.browser.opera && name == "display" ) {
+ var save = elem.style.display;
+ elem.style.display = "block";
+ elem.style.display = save;
+ }
// Make sure we're using the right name for getting the float value
if ( name.match( /float/i ) )
// Make sure we're using the right name for getting the float value
if ( name.match( /float/i ) )