prototype: Make Element#writeAttribute handle frameborder attribute in IE. Closes #11068.

This commit is contained in:
Tobie Langel 2008-03-09 08:05:29 +00:00
parent 359e8810de
commit addfdef8ff
3 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,5 @@
* Make Element#writeAttribute handle frameborder attribute in IE. Closes #11068. [staaky, Tobie Langel]
* Minor clean-up of selector.js. Closes #10844. [RQuadling]
* Make String#unescapeHTML strip tags in IE. Closes #10173. [kangax]

View File

@ -850,7 +850,7 @@ else if (Prototype.Browser.IE) {
Element._attributeTranslations.has = {};
$w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' +
'encType maxLength readOnly longDesc').each(function(attr) {
'encType maxLength readOnly longDesc frameBorder').each(function(attr) {
Element._attributeTranslations.write.names[attr.toLowerCase()] = attr;
Element._attributeTranslations.has[attr.toLowerCase()] = attr;
});

View File

@ -1384,6 +1384,9 @@
table.writeAttribute('cellpadding', '3')
assertEqual('2', table.readAttribute('cellspacing'));
assertEqual('3', table.readAttribute('cellpadding'));
var iframe = new Element('iframe', { frameborder: 0 });
assertIdentical(0, parseInt(iframe.readAttribute('frameborder')));
}},
testElementWriteAttributeWithCustom: function() {with(this) {