<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 15:24:13 +0000</lastBuildDate>
    <item>
      <title>(JavaScript) Correct sytax for the XHTML &amp; HTML 4  tag - PapillonUK</title>
      <link>https://snipplr.com/view/33780/correct-sytax-for-the-xhtml--html-4--tag</link>
      <description>&lt;p&gt;This is the correct markup for an inline script tag for HTML 4.01 and XHTML 1.0&#13;
Note the lack of any "language" attribute since this is deprecated.&#13;
&#13;
In HTML 4, the content type is declared as CDATA, which means that entities will not be parsed. &#13;
&#13;
In XHTML, the content type is declared as (#PCDATA), which means that entities will be parsed. So to avoid having to encode the data between the &lt;script&gt; tag with enclose it in a CDATA section.&#13;
Some older browsers don't recgnise the CDATA tag so we "hide" them in Javascript comments "//"&#13;
This allows the page to be validated and also still work in older browsers.&lt;/p&gt;</description>
      <pubDate>Mon, 03 May 2010 12:07:27 UTC</pubDate>
      <guid>https://snipplr.com/view/33780/correct-sytax-for-the-xhtml--html-4--tag</guid>
    </item>
    <item>
      <title>(JavaScript) Check for undefined var - PapillonUK</title>
      <link>https://snipplr.com/view/33562/check-for-undefined-var</link>
      <description>&lt;p&gt;You can use if(!myVar) which will return True if a variable is undefined OR zero, but this method specifically checks for undefined.&lt;/p&gt;</description>
      <pubDate>Thu, 29 Apr 2010 06:00:15 UTC</pubDate>
      <guid>https://snipplr.com/view/33562/check-for-undefined-var</guid>
    </item>
  </channel>
</rss>
