Changeset 8703
- Timestamp:
- 01/23/08 12:17:26 (9 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) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r8693 r8703 1 1 *SVN* 2 3 * Fix Element#writeAttribute to work with 'cellspacing' and 'cellpadding' attributes in IE. Closes #9983. [/dev/urandom, Tobie Langel] 2 4 3 5 * Prevent a potential security issue for cross-site ajax requests. [Alexey Feldgendler, sam, Tobie Langel] spinoffs/prototype/trunk/src/dom.js
r8654 r8703 800 800 801 801 Element._attributeTranslations.write = { 802 names: Object.clone(Element._attributeTranslations.read.names), 802 names: Object.extend({ 803 cellpadding: 'cellPadding', 804 cellspacing: 'cellSpacing' 805 }, Element._attributeTranslations.read.names), 803 806 values: { 804 807 checked: function(element, value) { spinoffs/prototype/trunk/test/unit/dom.html
r8655 r8703 282 282 </form> 283 283 284 <table id="write_attribute_table" >284 <table id="write_attribute_table" cellpadding="6" cellspacing="4"> 285 285 <tr><td id="write_attribute_td">A</td><td>B</td></tr> 286 286 <tr><td>C</td></tr> … … 1314 1314 assertEnumEqual(['1', '2'], elements.invoke('readAttribute', 'foo')); 1315 1315 assertEnumEqual(['2', null], elements.invoke('readAttribute', 'bar')); 1316 1317 var table = $('write_attribute_table'); 1318 assertEqual('4', table.readAttribute('cellspacing')); 1319 assertEqual('6', table.readAttribute('cellpadding')); 1316 1320 }}, 1317 1321 … … 1364 1368 1365 1369 assert(p.writeAttribute({style: 'width: 5px;'}).readAttribute('style').toLowerCase().include('width')); 1370 1371 var table = $('write_attribute_table'); 1372 table.writeAttribute('cellspacing', '2') 1373 table.writeAttribute('cellpadding', '3') 1374 assertEqual('2', table.readAttribute('cellspacing')); 1375 assertEqual('3', table.readAttribute('cellpadding')); 1366 1376 }}, 1367 1377