diff --git a/CHANGELOG b/CHANGELOG index cd5bdb2..10410b8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix Element#writeAttribute to work with 'cellspacing' and 'cellpadding' attributes in IE. Closes #9983. [/dev/urandom, Tobie Langel] + * Prevent a potential security issue for cross-site ajax requests. [Alexey Feldgendler, sam, Tobie Langel] * Test for attribute existence before applying more complex CSS3 selectors. Closes #10870. [arty, Tobie Langel] diff --git a/src/dom.js b/src/dom.js index 3db2992..e0a3c2c 100644 --- a/src/dom.js +++ b/src/dom.js @@ -799,7 +799,10 @@ else if (Prototype.Browser.IE) { }; Element._attributeTranslations.write = { - names: Object.clone(Element._attributeTranslations.read.names), + names: Object.extend({ + cellpadding: 'cellPadding', + cellspacing: 'cellSpacing' + }, Element._attributeTranslations.read.names), values: { checked: function(element, value) { element.checked = !!value; diff --git a/test/unit/dom.html b/test/unit/dom.html index 0828ad5..ab64a46 100644 --- a/test/unit/dom.html +++ b/test/unit/dom.html @@ -281,7 +281,7 @@ -
A | B | |
C | ||
D | E | F |