Riddle: When you have me How to manage immutable class with LinkedList as an instance field? Avoid doing this and you will be much happier. Old demons At this point, HTML mode rears it's ugly head. The CDATA means that the following lines (everything up unto the ]]> is not XML and thus should not be parsed that way. Check This Out
Join them; it only takes a minute: Sign up Syntax error while trying to add CDATA within script tags dynamically up vote 1 down vote favorite 1 So there is an Despite what some people think, w3schools is not related to the W3C, so their advice is to be taken with a grain of salt. The "async" attribute is new in HTML5. This is exactly what I tried to explain in my previous comment.
Ian Hixie has put together some research on the subject, which you might find useful if you are concerned about such user agents. as a frontend engineer and has worked in web development for more than 6 years, during which time he has helped develop web solutions in use at some of the largest It should not be used. –bobince Mar 3 '10 at 22:51 True, but the point remains.
For the rest of the document, assume that anything discussing scripting applies to styling as well, but that the syntax might have slight differences. CSS parsers are not XML parsers. It seems to be complaining about the fist < in CDATA declaration. Cdata Html5 This is not well formed XML and will cause an XML parser to give up and die (throwing, for instance, the yellow screen of death in Firefox).
CDATA — changing the rules of content There was, however, a solution! MS-IE anyone??? –Thomas Eding Mar 3 '10 at 23:17 add a comment| up vote 0 down vote You can put comments before the CDATA tags if you are worried that What is the most befitting place to drop 'H'itler bomb to score decisive victory in 1945? http://completeprogrammer.net/syntax-error/cdt-jni-syntax-error.html Let's do the Wave!
With the entire script being wrapped in a comment, there is no script left to pass to the scripting engine and the element is effectively empty. That more people made the same mistake doesn't make it a valid syntax. References Creating a declarative XML UI language The Future of the Web: Rich Clients, Rich Browsers, Rich Portals share|improve this answer edited Nov 20 '14 at 17:21 answered Aug 27 '12 The solution is the same as any other time we wish to represent a < character in a document.