Changeset 8654
- Timestamp:
- 01/18/08 04:31:23 (6 months ago)
- Files:
-
- spinoffs/prototype/trunk/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/trunk/src/dom.js (modified) (1 diff)
- spinoffs/prototype/trunk/test/unit/dom.html (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r8651 r8654 1 1 *SVN* 2 3 * Fix Element#descendantOf logic in IE. Closes #10413. [martymix, kamil.szot] 2 4 3 5 * Fix missing "var" in Element#insert. Closes #10838. [Lantash] spinoffs/prototype/trunk/src/dom.js
r8651 r8654 375 375 while (!(nextAncestor = ancestor.nextSibling) && ancestor.parentNode); 376 376 } 377 if (nextAncestor) return (e > a && e < nextAncestor.sourceIndex); 377 if (nextAncestor && nextAncestor.sourceIndex) 378 return (e > a && e < nextAncestor.sourceIndex); 378 379 } 379 380 spinoffs/prototype/trunk/test/unit/dom.html
r8580 r8654 92 92 } 93 93 94 #getStyle_test { 95 margin-left: 2em; 96 margin-right: 0.1em; 97 font-size: 95%; 98 height: 13ex; 99 width: 50%; 100 } 101 94 102 /* for scroll test on really big screens */ 95 103 body { … … 190 198 <div><div></div> </div><span> </span> 191 199 </div> 200 201 <div id="getStyle_test">Testing getStyle</div> 192 202 193 203 … … 1257 1267 assertEqual(0, $('op3').getStyle('opacity')); 1258 1268 1259 if( navigator.appVersion.match(/MSIE/)) {1269 if(Prototype.Browser.IE) { 1260 1270 assertEqual('alpha(opacity=30)', $('op1').getStyle('filter')); 1261 1271 assertEqual('progid:DXImageTransform.Microsoft.Blur(strength=10)alpha(opacity=30)', $('op2').getStyle('filter')); … … 1264 1274 assertEqual('alpha(opacity=0)', $('op3').getStyle('filter')); 1265 1275 assertEqual(0.3, $('op4-ie').getStyle('opacity')); 1276 1277 // make sure IE returns px values for non-px units 1278 assert($('getStyle_test').getStyle('margin-left').include('px')); 1279 1266 1280 } 1267 1281 // verify that value is still found when using camelized … … 1275 1289 // TODO: This test fails on IE because there seems to be no way 1276 1290 // to calculate this properly (clientWidth/Height returns 0) 1277 if(! navigator.appVersion.match(/MSIE/)) {1291 if(!Prototype.Browser.IE) { 1278 1292 assertEqual("14px", $('style_test_dimensions').getStyle('width')); 1279 1293 assertEqual("17px", $('style_test_dimensions').getStyle('height'));