Internet Explorer Cdata Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the cdata wiki workings and policies of this site About Us Learn more about Stack
Cdata Format
Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs javascript cdata Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join
Cdata Html
them; it only takes a minute: Sign up Should I use “]]>” or “//]]>” for closing a CDATA section into xHTML up vote 17 down vote favorite 6 I want to inline scripts or CSSs into XHTML without escaping special characters. I can do that using a CDATA marked section. According to http://www.w3.org/TR/xhtml1/#h-4.8 the CDATA section can be defined as: Then, according to http://www.w3schools.com/TAGS/tag_script.asp, the CDATA can look like: Which method for closing the CDATA section is better? ]]> or //]]> ? javascript html css xhtml cdata share|improve this question edited Oct 2 '15 at 5:09 DanAlexson90 3718 asked Mar 3 '10 at 21:43 Marc 88114 1 Or, just to externalize scripts. BTW: there are MVC frameworks which are based on XHTML (because they use a XML tool to parse source/generate output). That's the only where XHTML is good for. –BalusC Mar 3 '10 at 23:21 add a comment| 4 Answers 4 active oldest votes up vote 33 down vote accepted According to www.w3.org/TR/xhtml1/#h-4.8 the CDATA section can be defined as: [no //] Yeah. In XHTML, they can. Proper XHTML, as read by an XML parser like when you serve application/xhtml+xml to a web browser that isn't IE. But probably you're actually serving as text/html, which means your browser isn't an ‘XML processor’ as referenced in that se
product team could not reproduce this item with the description and steps provided. A more detailed explanation for the resolution of this particular item may have been provided in the comments section. ID 1398926 Comments 3 Status Closed Workarounds 0 Type Bug Repros 2 Opened 6/4/2015 6:19:52 AM Access Restriction Public Description If you have an XML tag containing a CDATA section with hyphens in it, the tag is parsed as having multiple children rather than a single child. E.g. http://stackoverflow.com/questions/2375217/should-i-use-or-for-closing-a-cdata-section-into-xhtml consider the following:
new DOMParser().parseFromString('
Detected You currently have javascript disabled. Several functions may not work. Please re-enable javascript to access full functionality. Cdata Section Parser http://w3schools.invisionzone.com/index.php?showtopic=26715 Error Started by suryabuddula, Aug 13 2009 04:54 PM Please log in to reply 10 replies to this topic #1 suryabuddula suryabuddula Newbie Members 6 posts Posted 13 August 2009 - 04:54 PM Hi All,My application generate a XML file contains special characters (ex: pound sign ) with encoding:UTF-8, which when opened via IE giving an error internet explorer -An invalid character was found in the text content. Error processing resource...