<?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>The Error Message &#187; Firefox</title>
	<atom:link href="http://www.theerrormessage.com/category/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theerrormessage.com</link>
	<description>Fix your error</description>
	<lastBuildDate>Tue, 13 Dec 2011 20:16:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>base html tag does not apply correctly to all javascript and style files</title>
		<link>http://www.theerrormessage.com/2009/07/base-html-tag-does-not-apply-correctly-to-all-javascript-and-style-files/</link>
		<comments>http://www.theerrormessage.com/2009/07/base-html-tag-does-not-apply-correctly-to-all-javascript-and-style-files/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 15:21:40 +0000</pubDate>
		<dc:creator>gbl</dc:creator>
				<category><![CDATA[Firefox]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.theerrormessage.com/2009/07/03/base-html-tag-does-not-apply-correctly-to-all-javascript-and-style-files/</guid>
		<description><![CDATA[Problem: The &#60;base href="http://example.com/path/to/res/"&#62;   did not work at all on Internet Explorer &#8211; no javascript or style files were loaded and worked partially in Mozilla Firefox &#8211; a few javascript files were not pointing to the path that should be transformed by base href attribute. Example: Array( [0] =&#62; 1 ) &#60;!DOCTYPE html PUBLIC [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong>: The
<pre class="code brush:html">&lt;base href="http://example.com/path/to/res/"&gt;</pre>
<p>  did not work at all on Internet Explorer &#8211; no javascript or style files were loaded and worked partially in Mozilla Firefox &#8211; a few javascript files were not pointing to the path that should be transformed by base href attribute.</p>
<p>Example:</p>
<pre class="code brush:html">
Array(
[0] =&gt; 1
)
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;base href="http://example.com/path/to/res/"&gt;
&lt;link rel="stylesheet" href="./css/styles.css" type="text/css" /&gt;
&lt;scrupt src="./js/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;scrupt src="./js/j1.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;scrupt src="./js/j2.js" type="text/javascript"&gt;&lt;/script&gt;
</pre>
<p>This code produced a page with no style files and  no javascript files included in Interenet Explorer 8 and a few javascript files (j1.js and j2.js) were not included in Firefox 3.5 because base tag was not applied. After several tests and all kind of different arrangements we discovered that the problem was the output before the page source the
<pre class="code brush:plain">Array ...</pre>
<p> thing.</p>
<p><strong>Solution</strong>: no output before the page&#8217;s headers otherwise you can get all kind of strange results including a html base tag not working correctly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theerrormessage.com/2009/07/base-html-tag-does-not-apply-correctly-to-all-javascript-and-style-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

