In the demo codes of dojo 1.6, I found some code like the below:
<mce:script type="text/javascript">
<!--
//other codes
-->
</mce:script>
So, what’s the meaning of this kind of codes?
And what are the differences between these codes and
<script type="text/javascript"></script >?
Seems that you can read Chinese. me too 🙂
If you open the demo page ( http://dojotoolkit.org/documentation/tutorials/1.6/events/demo/query.html ) in browser and view its source code, you can see there is no
mce:scripttags, justscripttag. So the reason is caused by the blog publishing system, when the author paste the JavaScript code to it, it automatically replace thescripttag withmce:scripttag to avoid XSS attack.