Ticket #6975: 6975_2.patch
File 6975_2.patch, 1.2 KB (added by , 13 years ago) |
---|
-
_source/core/htmlparser/fragment.js
41 41 // parser fixing. 42 42 var nonBreakingBlocks = CKEDITOR.tools.extend( { table:1,ul:1,ol:1,dl:1 }, CKEDITOR.dtd.table, CKEDITOR.dtd.ul, CKEDITOR.dtd.ol, CKEDITOR.dtd.dl ); 43 43 44 // IE < 8 don't output the close tag on definition list items. (#6975) 45 var optionalCloseTags = CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? { dd : 1, dt :1 } : {}; 46 44 47 var listBlocks = { ol:1, ul:1 }; 45 48 46 49 // Dtd of the fragment element, basically it accept anything except for intermediate structure, e.g. orphan <li>. … … 193 196 if ( element.isUnknown && selfClosing ) 194 197 element.isEmpty = true; 195 198 196 element.isOptionalClose = optionalClose; 199 // Check for optional closed elements, including browser quirks and manually opened blocks. 200 element.isOptionalClose = tagName in optionalCloseTags || optionalClose; 197 201 198 202 // This is a tag to be removed if empty, so do not add it immediately. 199 203 if ( CKEDITOR.dtd.$removeEmpty[ tagName ] )