Changeset 8800
- Timestamp:
- 02/04/08 23:22:18 (7 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) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r8799 r8800 1 * Avoid breaking Element.prototype in browsers which support it. Closes #11004. [cfis, Tobie Langel] 2 1 3 * Prevent Element#cumulativeOffset, Element#getOffsetParent, Element#positionedOffset, Element#viewportOffset and Element#clonePosition from throwing an error in IE when called on a parent-less element. Closes #9416, #10192, #10248. [ronstoney, psiborg, kangax] 2 4 spinoffs/prototype/trunk/src/dom.js
r8799 r8800 58 58 }; 59 59 Object.extend(this.Element, element || { }); 60 if (element) this.Element.prototype = element.prototype; 60 61 }).call(window); 61 62 spinoffs/prototype/trunk/test/unit/dom.html
r8799 r8800 5 5 <title>Prototype Unit test file</title> 6 6 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 7 <script type="text/javascript" charset="utf-8"> 8 var originalElement = Element; 9 </script> 7 10 <script src="../../dist/prototype.js" type="text/javascript"></script> 8 11 <script src="../lib/unittest.js" type="text/javascript"></script> … … 1444 1447 if (Prototype.Browser.IE) 1445 1448 assertMatch(/name=["']?my_input_field["']?/, $('my_input_field').outerHTML); 1449 1450 if (originalElement && Prototype.BrowserFeatures.ElementExtensions) { 1451 Element.prototype.fooBar = Prototype.emptyFunction 1452 assertRespondsTo('fooBar', new Element('div')); 1453 } 1446 1454 }}, 1447 1455