Changeset 2359 for FCKeditor/trunk

Show
Ignore:
Timestamp:
2008-08-14 13:03:54 (5 months ago)
Author:
alfonsoml
Message:

fix #2333. Encode ">" in Opera and Safari

Location:
FCKeditor/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckxhtmlentities.js

    r1565 r2359  
    151151                //      '&':'amp',              // This entity is automatically handled by the XHTML parser. 
    152152                //      '<':'lt',               // This entity is automatically handled by the XHTML parser. 
    153                 //      '>':'gt',               // This entity is automatically handled by the XHTML parser. 
     153                        '>':'gt',                       // Opera and Safari don't encode it in their implementation 
    154154                        'ˆ':'circ', 
    155155                        '˜':'tilde', 
     
    332332        else 
    333333        { 
    334                 FCKXHtmlEntities.Entities = {} ; 
     334                FCKXHtmlEntities.Entities = { 
     335                        '>':'gt' // Opera and Safari don't encode it in their implementation 
     336                } ; 
     337                sChars = '>'; 
    335338 
    336339                // Even if we are not processing the entities, we must render the &nbsp; 
    337340                // correctly. As we don't want HTML entities, let's use its numeric 
    338341                // representation (&#160). 
    339                 sChars = ' ' ; 
     342                sChars += ' ' ; 
    340343        } 
    341344 
  • FCKeditor/trunk/_test/automated/tests/fckdataprocessor.html

    r1565 r2359  
    165165} 
    166166 
     167function test_ConvertToDataFormat_Character_Transform() 
     168{ 
     169        var dataProcessor = new FCKDataProcessor() ; 
     170 
     171        assertEquals( 
     172                '<p>&lt;&lt;GetText(Edit)&gt;&gt;</p>', 
     173                dataProcessor.ConvertToDataFormat( document.getElementById('xDiv3'), true, true ) ) ; 
     174} 
     175 
    167176        </script> 
    168177</head> 
     
    170179        <div id="xDiv1"><p>This is a <strong>test</strong>.</p><p>Another paragraph.</p></div> 
    171180        <div id="xDiv2"><p>&nbsp;</p></div> 
     181        <div id="xDiv3"><p>&lt;&lt;GetText(Edit)&gt;&gt;</p></div> 
    172182</body> 
    173183</html> 
  • FCKeditor/trunk/_whatsnew.html

    r2330 r2359  
    3838                New Features and Improvements:</p> 
    3939        <ul> 
    40                 <li></li> 
     40                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2333">#2333</a>] The &amp;gt; 
     41                        character inside text wasn't encoded in Opera and Safari.</li> 
    4142        </ul> 
    4243        <p>