<?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>Robert Accettura&#039;s Fun With Wordage &#187; apng</title>
	<atom:link href="http://robert.accettura.com/blog/tag/apng/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert.accettura.com</link>
	<description>Robert Accettura&#039;s Personal Blog on Web Development and Tech</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:43:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://robert.accettura.com/?pushpress=hub'/>
<cloud domain='robert.accettura.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Rebreaking The Web</title>
		<link>http://robert.accettura.com/blog/2008/05/29/rebreaking-the-web/</link>
		<comments>http://robert.accettura.com/blog/2008/05/29/rebreaking-the-web/#comments</comments>
		<pubDate>Fri, 30 May 2008 02:10:33 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[apng]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[BrowserPlus]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox 3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google-gears]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html 5]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[WHATWG]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/?p=1761</guid>
		<description><![CDATA[It&#8217;s happening again. Once upon a time, browser vendors started adding their own features without consulting with each other and agreeing upon standards. What they created was a giant mess of inconsistencies across browsers and platforms that is still in &#8230; <a href="http://robert.accettura.com/blog/2008/05/29/rebreaking-the-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s happening again.  Once upon a time, browser vendors started adding their own features without consulting with each other and agreeing upon standards.  What they created was a giant mess of inconsistencies across browsers and platforms that is still in effect today.  Ask any web developer and they can tell you of the pains that they have suffered trying to make seemingly trivial things work everywhere consistently.  It&#8217;s no easy task.  Before IE 7, even an ajax required something along the lines of:</p>
<pre>

var httpRequest;
if (window.XMLHttpRequest) { // Mozilla, Safari, ...
    httpRequest = new XMLHttpRequest();
} else if (window.ActiveXObject) { // IE
    httpRequest = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
</pre>
<p>That&#8217;s right, IE 6 didn&#8217;t support the native xmlHttpRequest object (<a href="http://developer.mozilla.org/en/docs/AJAX:Getting_Started#Step_1_.E2.80.93_How_to_Make_an_HTTP_Request">more here</a>).  This is just one of many examples in JavaScript and CSS.  <code>document.all</code> anyone?</p>
<p>The end result of this problem became to be known as the &#8220;Web Standards&#8221; movement.  Simply put it&#8217;s an idea that code should follow a standard that results in consistent output across all browsers on various platforms.  Write once, run anywhere.  While it&#8217;s taken years for this to manifest, it&#8217;s slowly become a reality.  Firefox, Safari, Opera have fairly consistent rendering (at least in comparison to the mess of just a few years ago on the browser scene.  IE 6 was fairly poor in terms of modern web development, but IE 7 made progress, and IE 8 is Microsoft&#8217;s greatest effort to date to bring their browser up to speed.</p>
<p><span id="more-1761"></span></p>
<p>Unfortunately, all that &#8220;progress&#8221; is really catch up and making specs from several years ago work across browsers as the biggest area of problems (<a href="http://www.w3.org/TR/REC-CSS2/">CSS 2</a>) become a recommendation in 1998.  10 years and a few days ago.  Web sites, and developers want to do new things.  </p>
<p>As a result groups like <a href="http://www.whatwg.org">WHATWG </a> and   <a href="http://www.w3.org/html/wg/html5/">HTML 5</a> formed with the intent to provide modern features such as 2D drawing (canvas), media playback, drag and drop, offline mode, and storage.  All things desperately desired by web developers.  Some of this stuff to date has been supplemented by the use of plugins such as Flash which can provide some of this functionality, in particular video.  It should be noted the development of standards is a historically slow process since it&#8217;s essentially a bunch of geeks arguing until their keyboards wear out.  This process takes a <a href="http://wiki.whatwg.org/wiki/FAQ#When_will_HTML_5_be_finished.3F">long time</a>.</p>
<p>To speed things up, some once again bypassed standards and instead decided to implement things on their own:</p>
<ul>
<li>Apple implemented Canvas, which has some notable <a href="http://en.wikipedia.org/wiki/Canvas_%28HTML_element%29#Reactions">concerns regarding intellectual property</a>, though can still be standardized (and is <a href="http://www.w3.org/html/wg/html5/#the-canvas">still in the HTML5 specs</a> as I&#8217;m typing this). </li>
<li>Google released <a href="http://gears.google.com/">Gears</a> which originally provided offline support for web browsers, but has since expanded to allow for better desktop integration and running javascript in the background on browsers it supports.</li>
<li>Yahoo just announced <a href="http://browserplus.yahoo.com/">BrowserPlus</a>, which is an API &#8220;that allows developers to create rich web applications with desktop capabilities&#8221; (that&#8217;s verbatim from their page).</li>
<li>Mozilla added to Firefox 3 <a href="http://developer.mozilla.org/en/docs/Online_and_offline_events">Online/Offline events</a>, <a href="http://developer.mozilla.org/en/docs/Web-based_protocol_handlers">Web-based protocol handling</a>, which are both part of the WHATWG Web Application 1.0 specs.  In addition, <a href="http://developer.mozilla.org/en/docs/Animated_PNG_graphics">APNG</a> and <a href="http://developer.mozilla.org/en/docs/Drawing_text_using_a_canvas">text extensions to Canvas</a> were added, though it&#8217;s noted that they are experimental and essentially Firefox only for now.</li>
</ul>
<p>There are dozens of other little things in various browsers that are specific to them, but I won&#8217;t even go into that.  These are just the more high profile things at this time.</p>
<p>Does anyone else see the problem here?  At the rate things are progressing, it&#8217;s going to be pretty tough to build a competitive and user-friendly web application without requiring at least one framework being installed on the client side.  This means before a user can enjoy a good web experience they will need to install:</p>
<ul>
<li>Standards Compliant Web Browser (may come with OS)</li>
<li>Latest version of Adobe Flash (essentially the video standard right now)</li>
<li>BrowserPlus (for some sites)</li>
<li>Google Gears (for some sites)</li>
</ul>
<p>This really is starting to feel like another browser-bubble, this one being more of a &#8220;browser feature bubble&#8221;.  People rapidly trying to add features to meet application needs without standardizing.  This time instead of building it all into the browser, they are also providing plugins to add the functionality.  This is marginally better at best.  While it allows for support on multiple browsers/platforms it restricts innovation since not all browsers/platforms are supported.</p>
<p>Google Gears still doesn&#8217;t support the iPhone, despite it running in Safari due to Apple&#8217;s restrictions on 3rd party software.  It also doesn&#8217;t run on all portable Linux devices, or Blackberry&#8217;s.  Not to mention Opera or Camino.  It works on other Mozilla browsers that support extensions provided you tell your users to follow <a href="http://code.google.com/support/bin/answer.py?answer=83191&#038;topic=11691">these instructions</a> (you can essentially call that &#8220;unsupported&#8221;).  </p>
<p>Yahoo&#8217;s BrowserPlus is no darling either.  As of yet, it only supports Intel Mac&#8217;s running 10.4 or later (sorry PPC millions), and only Windows / Mac running Firefox 2+ or IE 7+.  That leaves out millions of IE 6, Safari, and Opera users.  Plus all of the mobile users (who are growing in number).  Yahoo promises that will improve, but we&#8217;ve got to wait for Yahoo engineers to get around to that.  If Yahoo is acquired by someone, who knows what that companies priorities will be for this project.</p>
<p>Apple implemented Canvas in Safari, Mozilla implemented it in Firefox.  But it&#8217;s adoption has been slow from a developer&#8217;s point of view since IE doesn&#8217;t support it.    There are several libraries (<a href="http://code.google.com/p/explorercanvas/">including one by Google</a>) that attempt to add support, but they are pretty slow and don&#8217;t provide the same experience to IE users (in particular older IE 6 users).  APNG is supported in Firefox 3 and Opera 9.5, both not released just yet.  APNG degrades nicely, but if your using an animation, you want an animation for all users, not just Firefox and Opera users.</p>
<p>Yes, adoption can grow for canvas, Yahoo and Google can support more platforms and browsers, but that doesn&#8217;t fix the root problems here:</p>
<ul>
<li>The entire web is waiting on a company to update their enhancements to support a platform/browser.  Open sourcing the code doesn&#8217;t really fix the problem since distribution is still problematic.  Also just increases the chances of forking which makes it even more painful.  Installing a browser in bits and pieces sucks.  Users shouldn&#8217;t be subjected to that.</li>
<li>There are multiple API&#8217;s to essentially do the same thing (drag &#038; drop, offline support, video, etc.).</li>
</ul>
<p>Does anyone else see this new form of fragmenting to be problematic?</p>
<p>While I agree the features each vendor is adding in are desired, I don&#8217;t think this is the right way to do it.  One of a few things will happen here:</p>
<ul>
<li>After a period of time, one or more of these API&#8217;s will become deprecated as one becomes dominant.  That&#8217;s a major pain for developers who choose the &#8220;wrong&#8221; one, and an expense for companies who are in that situation.  Nobody wants to be in this situation.</li>
<li>Things will continue to fragment and we&#8217;ll be back to the &#8220;Designed For Netscape&#8221; era, but it will be &#8220;Designed for Firefox 3+, Google Gears, Flash 9.0 r124, whatever&#8221;.  I get a chill just thinking about it.</li>
<li>Horrifically complicated code that essentially supports multiple products by using a subset of their functionality.  This might be the &#8220;best&#8221; and it still sucks on a massive scale since it increases costs for development and decreases fun.  You could use a JS library to abstract functionality to a more platform neutral API, but more libraries add overhead you may not want.  Not to mention more code your relying on someone else for.</li>
</ul>
<p>None of these are a good outcome.  </p>
<p>I&#8217;m not saying that the standards route is perfect.  There&#8217;s no binding requirement for anyone to adopt anything, or even accomplish a final spec.  There are many half implemented specs, and many that never go anywhere.  Perhaps that&#8217;s part of the problem.  Perhaps it&#8217;s that standardization has historically been a closed process, though it&#8217;s slowly opening up (thanks WHATWG).  Participation is also pretty touch as not many can manage to read all that email.</p>
<p>Browser vendors are not without their faults either.  They are historically a slow to fully adopt specs, and generally don&#8217;t collaborate on where they will start their implementation.  Partial support is as good as no support unless a it&#8217;s adopted uniformly across all popular browsers.  Perhaps that&#8217;s a place that browser vendors can best help developers.  By simply agreeing to implement <code>X</code>Y.</p>
<p>That said, one could create a plugin that implements a standard.  It&#8217;s already be done.  Adobe released an <a href="http://www.adobe.com/svg/">SVG plugin</a> (prior to the whole Macromedia deal as I&#8217;m not sure what the status is considering the Flash business is a closed source competitor), there&#8217;s also an <a href="https://addons.mozilla.org/en-US/firefox/addon/824">XForms plugin</a> for Mozilla browsers.</p>
<p>I really hope some caution is used before we have a browser feature bubble.  This is just going to become a mess of technologies that nobody can keep up with.  A lot of progress has been made in the past few years to fix mistakes of the past.  Is this process of add-ons really the right method of giving web developers what they want?</p>
<p>To be fair, Google&#8217;s Aaron Boodman recently blogged regarding <a href="http://gearsblog.blogspot.com/2008/04/gears-and-standards.html">Google Gears and standards</a>.   And does indicate the desire to become become compatible with HTML5:</p>
<blockquote cite="http://gearsblog.blogspot.com/2008/04/gears-and-standards.html"><p>
Currently, the Gears Database and LocalServer modules are not fully compatible with the HTML5 proposals for the same functionality. This is only because those specs were written after Gears was released, and not because of any desire to be different. In fact, we were involved in the design of both HTML5 specs, and we are currently implementing the proposal for database access.
</p></blockquote>
<p>This is good, but it&#8217;s still a moving target on a moving target as Google Gears is in beta and still being changed to match specs which are still evolving.</p>
<p>To avoid any misconceptions, I do think these features are a good thing.  I like canvas, offline support, drag &#038; drop integration, and want to implement them myself as well.  But I don&#8217;t think the process to add them has been successful thus far.  I think it&#8217;s just asking for trouble later on and will take a long time to repair.  This isn&#8217;t about Firefox extensions, or javascript libraries like jQuery, YUI or Prototype.  I love them and use them every day.  This is about having non standard ways to do things that clearly need to be standardized (and are in the process of being standardized), and encouraging other developers to implement a method that&#8217;s tied to a particular piece of software.</p>
<p>Who is at fault here?  Pretty much everyone.  Standards bodies are to slow for a fast moving industry for starters.  Secondly browser vendors fail to coordinate their progress on spec implementations.  While nobody expects CSS 3 to be implemented overnight, of vendors would agree on milestones in which certain features would be implemented, that would greatly help implementation for web developers.  Lastly plugin developers need to ensure what they are offering is widely available, free of any licensing problems that would impede implementation in other products, and are on a parallel track for standardization.</p>
<p>The web wouldn&#8217;t have succeeded if you needed to install a plugin for a <code>&lt;a href=""/&gt;</code>, or <code>&lt;img/&gt;</code>.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/?p=1761#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2008/05/7283518.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2008/05/29/rebreaking-the-web/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>APNG Support On Trunk</title>
		<link>http://robert.accettura.com/blog/2007/03/20/apng-support-on-trunk/</link>
		<comments>http://robert.accettura.com/blog/2007/03/20/apng-support-on-trunk/#comments</comments>
		<pubDate>Wed, 21 Mar 2007 02:35:57 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[apng]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/archives/2007/03/20/apng-support-on-trunk/</guid>
		<description><![CDATA[In my habit of checking recent checkins to the trunk, I noticed support for APNG has landed [Bug 257197]. Because it&#8217;s based on PNG, APNG can use partial transparency, which can help reduce those jagged looking edges. From what I &#8230; <a href="http://robert.accettura.com/blog/2007/03/20/apng-support-on-trunk/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In my habit of checking recent checkins to the trunk, I noticed support for <a href="http://wiki.mozilla.org/APNG_Specification">APNG</a> has landed [<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=257197">Bug 257197</a>].  Because it&#8217;s based on PNG, APNG can use partial transparency, which can help reduce those jagged looking edges.  From what I can tell, for older clients that don&#8217;t support APNG it should just show the first frame for backwards compatibility.</p>
<p>Awesome.  Looks like the relevant KHTML bug is <a href="http://bugs.kde.org/show_bug.cgi?id=88352">88352</a>.  I don&#8217;t know if that would apply to Safari or not.  I can&#8217;t find any position from Microsoft regarding support for IE.  I hope their <a href="http://blogs.msdn.com/dmassy/archive/2004/08/05/209428.aspx">support</a> for PNG alpha transparency (prior to IE 7) isn&#8217;t any indicator.</p>
<p>Regardless of adoption by browser vendors, it&#8217;s still a win for Mozilla, since chrome in the browser and extensions will be able to use APNG rather than GIF or JavaScript and PNG for animations.  There is already <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=326817">talk of that</a>.</p>
<p>You can find more <a href="http://www.pavlov.net/blog/blog/2007/03/apng_is_here.html">on Stuart Parmenter&#8217;s blog</a>.</p>
<p>Great stuff for anyone who finds animated GIF&#8217;s a bit antique.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/archives/2007/03/20/apng-support-on-trunk/#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2007/03/3546ab4.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2007/03/20/apng-support-on-trunk/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

