Ticket #2163: 2163.patch
File 2163.patch, 943 bytes (added by , 15 years ago) |
---|
-
editor/_source/internals/fckxhtml.js
70 70 // Strip the "XHTML" root node. 71 71 sXHTML = sXHTML.substr( 7, sXHTML.length - 15 ).Trim() ; 72 72 73 // Add a space in the tags with no closing tags, like <br/> -> <br /> 74 sXHTML = sXHTML.replace( FCKRegexLib.SpaceNoClose, ' />'); 73 // According to the doctype set the proper end for self-closing tags 74 // HTML: <br> 75 // XHTML: Add a space, like <br/> -> <br /> 76 if (FCKConfig.DocType.length > 0 && /DTD HTML/.test( FCKConfig.DocType ) ) 77 sXHTML = sXHTML.replace( FCKRegexLib.SpaceNoClose, '>'); 78 else 79 sXHTML = sXHTML.replace( FCKRegexLib.SpaceNoClose, ' />'); 75 80 76 81 if ( FCKConfig.ForceSimpleAmpersand ) 77 82 sXHTML = sXHTML.replace( FCKRegexLib.ForceSimpleAmpersand, '&' ) ;