Re: Test format questions

On Wed, Mar 14, 2012 at 5:30 PM, Jacob Goldstein <jacobg@adobe.com> wrote:
> The test Format wiki page specifies that <![CDATA[ needs to be used after
> the script tag.  Does this hold true for HTML5?

No.  <![CDATA[ doesn't have any special significance in text/html.
The contents of tags like <script> and <style> are always treated as
plaintext up until the closing tag, so characters like < and & don't
have to be escaped.  (On the flip side, there's no way to include a
literal "</script>" or "</style>", because it will be treated as a
closing tag and there's no escape mechanism.  You have to work around,
like changing "</script>" to "</scr" + "ipt>" in JavaScript.)

Received on Thursday, 15 March 2012 15:27:53 UTC