-
Website
http://alertdebugging.com -
Original page
http://www.alertdebugging.com/2009/08/16/on-html-5-drag-and-drop/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Elijah Grey
1 comment · 1 points
-
saikatc
1 comment · 1 points
-
Rod Begbie
1 comment · 6 points
-
boucher
1 comment · 7 points
-
hypermark
1 comment · 9 points
-
-
Popular Threads
The DOM is a mess, HTML has become a mess, CSS is a mess, ECMAScript is a mess everything about developing applications in the browser is a complete mess. But in the end this is what we have as a foundation to build our applications off of. However bad the foundation might be the end user doesn't care; they just want desktop quality applications that run in the browser.
Application frameworks like Cappuccino and SproutCore are being set in place now to make ridiculously simple task which have been made ridiculously complicated by web technologies simple again.
The idea behind HTML5 is to make the browser more capable of actually running applications. We keep building off unstable foundations and now we're running into the problems mentioned here.
The HTML5 standard is bringing a great deal of new technologies to the browser, but eventually these problems are going to have to be addressed. Eventually we're going to have to cook this pig wrapped in foil so that the only thing left are the good parts... so that it comes out as barbecue. If not we're always going to be building more frameworks on top of awful foundations to abstract ourselves.
Grumble if you like, but what you're observing is the best process possible for the web—because it's the only one that's managed to cause progress of any kind. If you think you can do a better job of herding cats and applying dynamite to foundations, more power to you.
Now, whether I like it or not the browser is the future of applications I just wish the foundation was a bit more stable.
In the long run, Darwinian evolution sounds like a good idea. But like adventure, it’s better read about than experienced, because the only way it can really happen rapidly is with a high death rate.
The browser manufacturers only implement it while it is good for them - as soon as HTML5 (WHATWG or WWW) mandate something they don't want to do - it breaks.
HTML is a mark-up language that has been bullied and abused into a "solution" to deliver web applications to users. That shouldn't need explaining, it's like using a bar of chocolate as a screwdriver.
HTML5 doesn't attempt to clean up "tag-soup" or completely badly written HTML, we still have engines 'guessing' at what authors meant.
And finally, a number of people "behind" the standards are academic snobs, who look down on anyone else. (Hixie is *not* one of them)
That reality (browser vendors are the ones who make browsers---amazing!) complicates getting the perfect outcome shouldn't surprise you, and it shouldn't discourage you, either. The endless march forward of technology is littered with imperfect solutions to complicated problems, with hacks layered upon each other neck-deep which enough effort and code have actually turned into something useful. It's nothing new, and it's not bad. If you think you can come up with another solution which actually has a chance in hell of getting adopted by thousands of corporations and millions of individuals in hundreds of countries on a sane timeframe, you're probably wrong, anyway.
For the record HTML5 -does- attempt to 'clean up "tag-soup"': read Section 9. A staggering amount of time has gone into making sure that future agents get a consistent, interoperable parse tree in standard mode while also mirroring existing behaviour as much as possible; ignoring all this hard work is folly.
I was on the WHATWG and W3C mailing lists, and insulted off list by numerous of the "academic" snobs. The procedure is flawed, as is the use of HTML5 for web applications. Neither of you argued away that point, instead you said - it's the best we can do. Settling for second best is bull.
Mr. King, you also come from a silly point of view, Adobe Air, Silverlight and Flash all attempt to do what you suggest, so saying "getting adopted by thousands of corporations and millions of individuals in hundreds of countries on a sane timeframe, you're probably wrong, anyway." is just plain pathetic. Take your delusions elsewhere.
(Note: I have no direct knowledge of DnD in MSIE, but this was the answer given by Hixie to some recent comments on the API's deficiencies on the WHATWG list.)
I'm actually doing a bit of work on DnD support in Chrome and WebKit. I have a WebKit patch out that fixes a bunch of nits with the values of dropEffect and effectAllowed, which will hopefully get reviewed and checked in soon.
Like Jens Alfke said this API has been reversed engineered from Microsofts own proprientry API and is not new. There are however further proposed extensions to the current API such as the files attribute on the dataTransfer method that I wrote about http://www.thecssninja.com/javascript/drag-and-... this allows us to go in the other direction by dragging from our desktop into the browser.