prototype: Make Element#writeAttribute handle frameborder attribute in IE. Closes #11068.
This commit is contained in:
parent
359e8810de
commit
addfdef8ff
|
@ -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]
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue