Ticket #3884: 3884.patch
File 3884.patch, 2.5 KB (added by , 15 years ago) |
---|
-
_source/tests/plugins/htmldataprocessor/htmldataprocessor.html
270 270 dataProcessor.toDataFormat( protectedHtml ) ); 271 271 }, 272 272 273 /** 274 * Test empty value attributes. 275 */ 276 test_ticket_3884 : function() 277 { 278 var editor = CKEDITOR.instances.editor1, 279 dataProcessor = editor.dataProcessor; 280 dataProcessor.writer = new CKEDITOR.htmlParser.basicWriter(); 273 281 282 assert.areSame( '<p><a href="" name="">emptylink</a></p>', 283 dataProcessor.toDataFormat( dataProcessor.toHtml( '<p><a href="" name="">emptylink</a></p>' ) ) ); 284 }, 285 274 286 name : document.title 275 287 }; 276 288 })() ); 277 289 278 //window.onload = testCase.test_ticket_3 407;290 //window.onload = testCase.test_ticket_3884; 279 291 //]]> 280 292 </script> 281 293 </head> -
_source/plugins/htmldataprocessor/plugin.js
114 114 115 115 if ( attribs ) 116 116 { 117 // Remove duplicates that have been saved with our 118 // special names. 119 if ( attribs._cke_saved_name ) 120 delete attribs.name; 121 if ( attribs._cke_saved_href ) 122 delete attribs.href; 123 if ( attribs._cke_saved_src ) 124 delete attribs.src; 125 } 117 var attributeNames = [ 'name', 'href', 'src' ], 118 savedAttributeName; 119 for ( var i = 0 ; i < attributeNames.length ; i++ ) 120 { 121 savedAttributeName = '_cke_saved_' + attributeNames[ i ]; 122 savedAttributeName in attribs && ( delete attribs[ savedAttributeName ] ); 123 } 124 } 126 125 }, 127 126 128 127 embed : function( element ) -
CHANGES.html
92 92 source code.</li> 93 93 <li><a href="http://dev.fckeditor.net/ticket/3639">#3639</a> : Button size was inconsistent.</li> 94 94 <li><a href="http://dev.fckeditor.net/ticket/3874">#3874</a> : Paste as plain text in Safari loosing lines.</li> 95 <li><a href="http://dev.fckeditor.net/ticket/3884">#3884</a> : Empty "href" attribute was duplicated on output data.</li> 95 96 </ul> 96 97 <h3> 97 98 CKEditor 3.0 RC</h3>