#3869: Script with comment
--------------------------------+-------------------------------------------
 Reporter:  arczi               |       Owner:  arczi       
     Type:  Bug                 |      Status:  assigned    
 Priority:  Normal              |   Milestone:  CKEditor 3.0
Component:  Core : Output Data  |     Version:              
 Keywords:  Review-             |  
--------------------------------+-------------------------------------------

Comment(by arczi):

 Replying to [comment:3 garry.yao]:
 > You're always sensitive to various ways of comments ;), maybe the
 implementation could be further simplified by eliminate the encoding of
 '''comments inside script tag''' at first place instead of restore it
 later.

 No :)
 This bug is not only with comments but also with all protectedSource.

 Changing order in regexes would fix only few cases.

 More buggy content:
 {{{
 <?
 echo 'aaa<script>bbb</script>bbbb';
 ?>
 }}}
 {{{
 <!-- <? echo $code ?> -->
 }}}
 {{{
 <? echo "<noscript>aaa</noscript>" ?>
 }}}

 and any combination of protectedSource inside of other protectedSource.

 This content works now, but won't work with your regexes
 {{{
 <!--
         <script language="Javascript" type="text/javascript">
         var factive_color = '#F9F9F0';
 </script>//-->
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3869#comment:4>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
_______________________________________________
FCKeditor-Trac mailing list
FCKeditor-Trac@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to