Ticket #4656: 4656.patch
File 4656.patch, 1.4 KB (added by , 14 years ago) |
---|
-
_source/core/htmlparser/element.js
35 35 this.children = []; 36 36 37 37 var dtd = CKEDITOR.dtd, 38 isBlockLike = !!( dtd.$block[ name ] || dtd.$listItem[ name ] || dtd.$tableContent[ name ] || dtd.$nonEditable ),38 isBlockLike = !!( dtd.$block[ name ] || dtd.$listItem[ name ] || dtd.$tableContent[ name ] || dtd.$nonEditable[ name ] ), 39 39 isEmpty = !!dtd.$empty[ name ]; 40 40 41 41 this.isEmpty = isEmpty; -
_test/dt/core/htmlparser/htmlparser.html
69 69 htmlParse( getTextAreaValue( 'htmlOriginal3' ) ), 70 70 'Attributes doesn\'t match.' ); 71 71 }, 72 72 73 // Test white-spaces inside inline elements are well preserved, while 74 // white-spaces before block-level elements are trimmed. (#4656) 75 test_trim_whitespaces : function() 76 { 77 assert.areSame( '<div>some <strong>bold</strong> text<p>paragraph</p></div>', 78 htmlParse( '<div>some <strong>bold</strong> text <p>\nparagraph</p></div>' ), 79 'White-spaces doesn\'t match.' ); 80 }, 81 73 82 name :document.title 74 83 }; 75 84 } )() );