W3C home > Mailing lists > Public > public-css-testsuite@w3.org > March 2012

Re: Test format questions

From: Aryeh Gregor <ayg@aryeh.name>
Date: Thu, 15 Mar 2012 11:26:54 -0400
Message-ID: <CAKA+Axkv34m+opwWi8jRGCY6iXrLn3vtcV+QsygiJX1QTcEu5w@mail.gmail.com>
To: Jacob Goldstein <jacobg@adobe.com>
Cc: "public-css-testsuite@w3.org" <public-css-testsuite@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 15 March 2012 15:27:59 GMT