﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8216	Source protection doesn't work properly in some cases	Wiktor Walc		"The default protection of <SCRIPT> tags and comments doesn't seem to work properly in certain cases, when `<SCRIPT>` tag is followed by a comment.


=== Steps to reproduce ===
1. Paste the following source code:

{{{
<p>
<SCRIPT LANGUAGE=""JavaScript"">
//'
</SCRIPT><!-- comment --><SCRIPT LANGUAGE=""JavaScript"">
//'
</SCRIPT></p>
}}}

2. Switch to wysiwyg mode and back
3. Result: code is changed into:
{{{
<p>
<SCRIPT LANGUAGE=""JavaScript"">
//'
</SCRIPT>{C}{C}{C}<!-- comment --><SCRIPT LANGUAGE=""JavaScript"">
//'
</SCRIPT></p>
}}}
(an extra `{C}` is added everytime when swiching to source and back). Also an extra text `{cke_protected_1}` is displayed in wysiwyg mode.

Note: it is a reduced example made from a more complicated sample taken from a live website."	Bug	closed	Normal	CKEditor 4.3.4	General	3.5.2	fixed		contact@…
