<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx</link><description>In my recent blog post, Chakra: Interoperability Means More Than Just Standards , I explained why IE9 only supports the ECMAScript 5 API for defining getter/setter methods. I also mentioned that it is fairly trivial to define a simple compatibility library</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10061280</link><pubDate>Mon, 13 Sep 2010 16:06:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10061280</guid><dc:creator>war59312</dc:creator><description>&lt;p&gt;@Mark LOL!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10061280" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10060437</link><pubDate>Fri, 10 Sep 2010 19:12:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10060437</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;You spelled &amp;quot;Typo&amp;quot; wrong in your edit - oh the irony...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10060437" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059486</link><pubDate>Wed, 08 Sep 2010 20:16:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059486</guid><dc:creator>Johnnyq3</dc:creator><description>&lt;p&gt;@Mario&lt;/p&gt;
&lt;p&gt;The main reason why IE is using GPU acceleration is to remove the strain that some have on the CPU.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059486" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059467</link><pubDate>Wed, 08 Sep 2010 19:24:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059467</guid><dc:creator>steve</dc:creator><description>&lt;p&gt;@EricLaw - well spotted... it may well be fixed... there is no info on the JScript blog about it (or update to the post) so I figured it still existed... I&amp;#39;ll re-test just to be sure though.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059467" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059431</link><pubDate>Wed, 08 Sep 2010 17:49:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059431</guid><dc:creator>EricLaw [MSFT]</dc:creator><description>&lt;p&gt;@Steve,Test: Are you still able to reproduce the problem? I believe that issue was already fixed in an IE8 update (&lt;a rel="nofollow" target="_new" href="http://support.microsoft.com/kb/976662"&gt;support.microsoft.com/.../976662&lt;/a&gt;).&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059431" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059427</link><pubDate>Wed, 08 Sep 2010 17:44:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059427</guid><dc:creator>Test</dc:creator><description>&lt;p&gt;Steve-- it&amp;#39;s a good bug, but did you file it on Connect? Have you tried it in the Platform Preview build?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059427" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059423</link><pubDate>Wed, 08 Sep 2010 17:41:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059423</guid><dc:creator>steve</dc:creator><description>&lt;p&gt;Double posting here on the IE blog as well as the JScript blog.&lt;/p&gt;
&lt;p&gt;IE8&amp;#39;s JSON.stringify() has a bug when encoding an empty string &amp;quot;&amp;quot; if that string was collected from a form field&amp;#39;s value... where it encodes it as &amp;quot;null&amp;quot;.&lt;/p&gt;
&lt;p&gt;Can we correctly presume that this will be fixed in IE9?&lt;/p&gt;
&lt;p&gt;JScript blog post about the bug: &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/jscript/archive/2009/06/23/serializing-the-value-of-empty-dom-elements-using-native-json-in-ie8.aspx"&gt;blogs.msdn.com/.../serializing-the-value-of-empty-dom-elements-using-native-json-in-ie8.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And for those that want a good laugh, here is the fix posted by the JScript team:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;1.) if (foo === &amp;quot;&amp;quot;) foo = &amp;quot;&amp;quot;; //ensure that possibly bogus &amp;quot;&amp;quot; is replaced with a real &amp;quot;&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;2.) JSON.stringify(foo); // retuns &amp;#39;&amp;quot;&amp;quot;&amp;#39;&lt;/p&gt;
&lt;p&gt;Line #1 - yeah that&amp;#39;s correct... believe it or not...&lt;/p&gt;
&lt;p&gt;Since this is obviously a bug in the JSON.stringify() method... or worse yet the JScript String parsing/casting/? it would be good to get this fixed in IE9 (possibly even backported to IE8)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059423" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059412</link><pubDate>Wed, 08 Sep 2010 17:24:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059412</guid><dc:creator>Allen Wirfs-Brock [MSFT]</dc:creator><description>&lt;p&gt;@Meni&lt;/p&gt;
&lt;p&gt;Since you ask, I would classify this post as being more about interoperability than about standards.&lt;/p&gt;
&lt;p&gt;I have no problems using the word &amp;quot;Standands&amp;quot;. In fact, &amp;nbsp;I use it every day. But as I discussed in &lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/b/ie/archive/2010/08/25/chakra-interoperability-means-more-than-just-standards.aspx"&gt;blogs.msdn.com/.../chakra-interoperability-means-more-than-just-standards.aspx&lt;/a&gt; there is more to achiving interoperability (getting the same code to run in different browsers) than just what is in standards.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059412" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059406</link><pubDate>Wed, 08 Sep 2010 17:14:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059406</guid><dc:creator>Allen Wirfs-Brock [MSFT]</dc:creator><description>&lt;p&gt;@Jeff Walden&lt;/p&gt;
&lt;p&gt;Jeff, of course you are correct that there isn&amp;#39;t a 100% equivalence in the first two examples. &amp;nbsp;However, &amp;nbsp;since there is no offical spec. for the legacy API and some semantic details actually differ among its browser implementations, it is hard to know with what we would be trying to be 100% equivalent. &amp;nbsp;Regardless, as you infer I was just trying to not keep the article simple. &amp;nbsp;In reality, I suspect that most legacy uses of getter/setter properties don&amp;#39;t really care about the enumerability or configurability of the properties. &amp;nbsp;Finally, there are subtle differences in the semantics of legacy pre-ES5 getter/setter properties and ES5 accessor properties. &amp;nbsp;The goal of bridge routines such as these is to support interoperability of common use cases rather than providing a perfect bi-directional emulation of every semantic detail.&lt;/p&gt;
&lt;p&gt;Allen&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059406" width="1" height="1"&gt;</description></item><item><title>re: Transitioning Existing Code to the ES5 Getter/Setter APIs</title><link>http://blogs.msdn.com/b/ie/archive/2010/09/07/transitioning-existing-code-to-the-es5-getter-setter-apis.aspx#10059367</link><pubDate>Wed, 08 Sep 2010 15:25:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10059367</guid><dc:creator>Mario</dc:creator><description>&lt;p&gt;will Internet explorer 9 use less memory and less CPU than internet explorer 8?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10059367" width="1" height="1"&gt;</description></item></channel></rss>