Ticket #4075: 4075.patch
File 4075.patch, 2.7 KB (added by , 14 years ago) |
---|
-
_source/plugins/styles/plugin.js
443 443 { 444 444 if ( parent.getName() == elementName ) 445 445 { 446 for ( var attName in def.attrib s )446 for ( var attName in def.attributes ) 447 447 { 448 448 if ( styleNode.getAttribute( attName ) == parent.getAttribute( attName ) ) 449 449 styleNode.removeAttribute( attName ); -
_source/core/dom/element.js
774 774 // outerHTML of the element is not displaying the class attribute. 775 775 // Note : I was not able to reproduce it outside the editor, 776 776 // but I've faced it while working on the TC of #1391. 777 if ( this.getAttribute( 'class' ) > 0)777 if ( this.getAttribute( 'class' ) ) 778 778 return true; 779 779 780 780 // Attributes to be ignored. -
_source/tests/core/dom/element.html
507 507 assert.isTrue( element.hasAttributes() ); 508 508 }, 509 509 510 /** 511 * Test detecting of 'class' attribute in IE6/7. 512 */ 513 test_hasAttributes_4075 : function() 514 { 515 if ( !CKEDITOR.env.ie && ( CKEDITOR.env.ie7Compat || CKEDITOR.env.ie6Compat ) ) 516 return; 517 var element = new CKEDITOR.dom.element( 'span' ); 518 element.setAttribute( 'class', 'value' ); 519 assert.isTrue( element.hasAttributes(), 'Failed to detect "class" attribute existence.' ); 520 }, 521 510 522 test_getDocumentPosition : function() 511 523 { 512 524 // Assign the page location of the element. -
CHANGES.html
166 166 <li><a href="http://dev.fckeditor.net/ticket/3994">#3994</a> : Insert horizontal line at end of document cause error.</li> 167 167 <li><a href="http://dev.fckeditor.net/ticket/4074">#4074</a> : Indent error with 'indentClasses' config specified.</li> 168 168 <li><a href="http://dev.fckeditor.net/ticket/4057">#4057</a> : Fixed anchor is lost after switch between editing modes.</li> 169 <li><a href="http://dev.fckeditor.net/ticket/4075">#4075</a> : [IE6/7]Fixed apply custom inline style with "class" attribute failed.</li> 169 170 </ul> 170 171 <h3> 171 172 CKEditor 3.0 RC</h3>