<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>VibrantCode - JavaScript</title>
    <link>http://blog.andrewnurse.net/</link>
    <description>Oooh...pretty code</description>
    <language>en-us</language>
    <copyright>Andrew Nurse</copyright>
    <lastBuildDate>Sat, 16 Aug 2008 00:54:35 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>andrew@andrewnurse.net</managingEditor>
    <webMaster>andrew@andrewnurse.net</webMaster>
    <item>
      <trackback:ping>http://blog.andrewnurse.net/Trackback.aspx?guid=40cff6ac-c640-4ad5-b995-479fbd408545</trackback:ping>
      <pingback:server>http://blog.andrewnurse.net/pingback.aspx</pingback:server>
      <pingback:target>http://blog.andrewnurse.net/PermaLink,guid,40cff6ac-c640-4ad5-b995-479fbd408545.aspx</pingback:target>
      <dc:creator>Andrew Nurse</dc:creator>
      <wfw:comment>http://blog.andrewnurse.net/CommentView,guid,40cff6ac-c640-4ad5-b995-479fbd408545.aspx</wfw:comment>
      <wfw:commentRss>http://blog.andrewnurse.net/SyndicationService.asmx/GetEntryCommentsRss?guid=40cff6ac-c640-4ad5-b995-479fbd408545</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I know, its been a while since I've blogged,
but I'm just so busy with my Microsoft internship its been hard to find time. Anyway,
on to the post...<br /><br />
I've been doing quite a bit of JavaScript work recently and I discovered an interesting
inconsistency between Firefox and IE when it comes to the innerHTML project. Federico,
from the ASP.Net QA team blog, <a href="http://weblogs.asp.net/asptest/archive/2008/08/15/browser-difference-when-using-quot-innerhtml-quot.aspx">posted
the details on that blog</a>, but here's a quick summary.<br /><br />
Basically, it comes down to when the browsers perform whitespace normalization. In
HTML, multiple whitespace (space, tab, newline etc.) characters are treated as a single
space. Also, whitespace at the beginning of "block" elements (which are elements like
DIV which have newlines before them) is removed. In Firefox, the whitespace is preserved
exactly as typed when stored in Firefox's internal structures. When the HTML is rendered
out, Firefox performs the normalization on the fly. However, in IE, the whitespace
is normalized before the internal structures are built.<br /><br />
The result of this is that the contents of the innerHTML property for a DOM element
can vary between these two browsers.<br /><br />
Check out <a href="http://weblogs.asp.net/asptest/archive/2008/08/15/browser-difference-when-using-quot-innerhtml-quot.aspx">the
blog post</a> for more details.<br /><p></p><img width="0" height="0" src="http://blog.andrewnurse.net/aggbug.ashx?id=40cff6ac-c640-4ad5-b995-479fbd408545" /></body>
      <title>Rendering difference between Firefox and IE when using innerHTML</title>
      <guid isPermaLink="false">http://blog.andrewnurse.net/PermaLink,guid,40cff6ac-c640-4ad5-b995-479fbd408545.aspx</guid>
      <link>http://blog.andrewnurse.net/2008/08/16/RenderingDifferenceBetweenFirefoxAndIEWhenUsingInnerHTML.aspx</link>
      <pubDate>Sat, 16 Aug 2008 00:54:35 GMT</pubDate>
      <description>I know, its been a while since I've blogged, but I'm just so busy with my Microsoft internship its been hard to find time. Anyway, on to the post...&lt;br&gt;
&lt;br&gt;
I've been doing quite a bit of JavaScript work recently and I discovered an interesting
inconsistency between Firefox and IE when it comes to the innerHTML project. Federico,
from the ASP.Net QA team blog, &lt;a href="http://weblogs.asp.net/asptest/archive/2008/08/15/browser-difference-when-using-quot-innerhtml-quot.aspx"&gt;posted
the details on that blog&lt;/a&gt;, but here's a quick summary.&lt;br&gt;
&lt;br&gt;
Basically, it comes down to when the browsers perform whitespace normalization. In
HTML, multiple whitespace (space, tab, newline etc.) characters are treated as a single
space. Also, whitespace at the beginning of "block" elements (which are elements like
DIV which have newlines before them) is removed. In Firefox, the whitespace is preserved
exactly as typed when stored in Firefox's internal structures. When the HTML is rendered
out, Firefox performs the normalization on the fly. However, in IE, the whitespace
is normalized before the internal structures are built.&lt;br&gt;
&lt;br&gt;
The result of this is that the contents of the innerHTML property for a DOM element
can vary between these two browsers.&lt;br&gt;
&lt;br&gt;
Check out &lt;a href="http://weblogs.asp.net/asptest/archive/2008/08/15/browser-difference-when-using-quot-innerhtml-quot.aspx"&gt;the
blog post&lt;/a&gt; for more details.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.andrewnurse.net/aggbug.ashx?id=40cff6ac-c640-4ad5-b995-479fbd408545" /&gt;</description>
      <comments>http://blog.andrewnurse.net/CommentView,guid,40cff6ac-c640-4ad5-b995-479fbd408545.aspx</comments>
      <category>JavaScript</category>
      <category>Microsoft Internship</category>
    </item>
  </channel>
</rss>