When is a CDATA section necessary within a script tag?
来源:互联网 发布:网络剧招商方案 编辑:程序博客网 时间:2024/05/22 05:16
转载自:http://stackoverflow.com/questions/66837/when-is-a-cdata-section-necessary-within-a-script-tag
When browsers treat the markup as XML:
<script><![CDATA[ ...code...]]></script>
When browsers treat the markup as HTML:
<script> ...code...</script>
When browsers treat the markup as HTML and you want your XHTML 1.0 markup (for example) to validate.
<script>//<![CDATA[ ...code...//]]></script>
0 0
- When is a CDATA section necessary within a script tag?
- Is a Test of spoken English Necessary?
- 错误angular2 Error: If ngModel is used within a form tag...
- Spatial index is slow when trying to find all the points within a range of a geocode.
- ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form
- when a child is born
- When a child is born
- when a child is born
- When is a destructor called?
- When is a destructor called?
- When is a singleton not a singleton?
- 'my_calendar' is not a valid tag library
- 'my_templatetag' is not a registered tag library.
- 处理:The selection is not within a valid module.
- 解决The selection is not within a valid module
- 解决The selection is not within a valid module
- 解决The selection is not within a valid module
- The selection is not within a valid module异常
- ArrayList和LinkedList HashMap和Hashtable的区别的区别
- switch循环
- 一篇在我开始jsp之路时看到的文章(2)
- 在线外卖订餐网站市场竞争趋势分析
- $.ajax()方法参数详解
- When is a CDATA section necessary within a script tag?
- VirtualBox 使用 NAT 方式网络的 SSH 连接
- 关于linux系统如何实现fork的研究(一)
- HTTP 请求方式: GET和POST的比较
- 体验文件操作2
- STL算法--------函数对象
- 机器学习学习笔记之rf模型
- Ext.data.proxy.Ajax代理
- 【架构】zookeeper在分布式应用中的重要作用