<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learning the World &#187; 2014</title>
	<atom:link href="http://learningtheworld.eu/tag/2014/feed/" rel="self" type="application/rss+xml" />
	<link>http://learningtheworld.eu</link>
	<description></description>
	<lastBuildDate>Tue, 06 Nov 2012 00:17:33 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.1</generator>
	<item>
		<title>Farewell, XML declaration</title>
		<link>http://learningtheworld.eu/2008/farewell-xml-declaration/</link>
		<comments>http://learningtheworld.eu/2008/farewell-xml-declaration/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 16:00:04 +0000</pubDate>
		<dc:creator><![CDATA[Martin Kliehm]]></dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[2014]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[declaration]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[quirks-mode]]></category>
		<category><![CDATA[Richard Ishida]]></category>
		<category><![CDATA[utf-8]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://learningtheworld.eu/?p=102</guid>
		<description><![CDATA[The <acronym title="Extensible Markup Language">XML</acronym> declaration is <em>not required</em> as long as you encode in UTF-8 or UTF-16, you are only strongly encouraged to use it. So as long we are stuck with <acronym>IE6</acronym> I will refrain from using it.&#160;[&#8230;]]]></description>
				<content:encoded><![CDATA[<p>For years I have been using an <strong><acronym title="Extensible Markup Language">XML</acronym> declaration</strong> prior to my DOCTYPE declaration:</p>

<ol class="code">
<li><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;&nbsp;?&gt;</code></li>
<li><code>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/<span class="codeSpace">&nbsp;</span>TR/xhtml1/DTD/<span class="codeSpace">&nbsp;</span>xhtml1-strict.dtd&quot;&gt;</code></li>
</ol>

<p>It was obvious for me that such a declaration would be a good thing to have since <strong><acronym title="Extensible Hypertext Markup Language">XHTML</acronym> is <acronym>XML</acronym></strong> after all. Only later I learned that it triggers a bug in <acronym title="Internet Explorer 6">IE6</acronym> to render pages in <strong>quirks mode</strong> with a <strong>broken box model</strong>. But I was used to build workarounds for Internet Explorer bugs since <acronym>IE</acronym> 3.0 and never knew anything but the broken box model in <acronym>IE</acronym>, so I continued to use the declaration.</p>

<p>Until recently my colleague Thomas Junghans took the trouble to research, and found this phrase in the <a href="http://www.w3.org/TR/xhtml1/#strict"><acronym>XHTML</acronym> specification</a>:</p>

<blockquote cite="http://www.w3.org/TR/xhtml1/#strict"><p>An <acronym>XML</acronym> declaration is not required in all <acronym>XML</acronym> documents; however <acronym>XHTML</acronym> document authors are strongly encouraged to use <acronym>XML</acronym> declarations in all their documents. Such a declaration is required when the character encoding of the document is other than the default UTF-8 or UTF-16 and no encoding was determined by a higher-level protocol.</p></blockquote>

<p>The declaration is <strong>not required</strong> as long as you encode in UTF-8 or UTF-16, you are only strongly encouraged to use it. Gasp!</p>

<p>Richard Ishida lists some <a href="http://www.w3.org/International/tutorials/tutorial-char-enc/#Slide0330">advantages of using the declaration</a> when serving the pages with an <acronym>XML</acronym> <acronym>MIME</acronym> type or viewing them offline, however I&rsquo;m convinced the disadvantages prevail.</p>

<p>So as long we are stuck with <acronym>IE6</acronym> &mdash; and people say that could be as long as 2014 when <a href="http://support.microsoft.com/lifecycle/?LN=en-gb&#038;x=16&#038;y=12&#038;C2=1173">support for Windows <acronym>XP</acronym></a> ends (reminder to self: throw a party on 8 April, 2014)&nbsp;&mdash; I&nbsp;will refrain from using the <acronym>XML</acronym> declaration. Amen.</p>
]]></content:encoded>
			<wfw:commentRss>http://learningtheworld.eu/2008/farewell-xml-declaration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
