Slashdot Mirror


How HTML5 Will Change the Web

snydeq writes "InfoWorld's Peter Wayner looks beyond the codec and plug-in wars to examine nine areas where HTML5 will have a significant impact on Web development. From enabling more interactive graphics, to tapping local file storage, to geolocation, HTML5 is rife with rich capabilities — and may even improve our ability to secure applications delivered via the Web, Wayner writes. But the most important impact of HTML5 will be its ability to simplify Web development itself: 'HTML5 offers one language (JavaScript), one data model (XML and DOM), and one set of layout rules (CSS) to bind text, audio, video, and graphics. The challenge of making something beautiful is still immense, but it's simpler to work with a unified standard.'"

208 comments

  1. One data model by melonman · · Score: 1

    Doesn't HTML5 JS still provide XSLT as well as DOM?

    --
    Virtually serving coffee
    1. Re:One data model by jrumney · · Score: 1

      XLST is not a data model. It is however a different language than Javascript, and could be used to transform some other data model to DOM on the fly. Also I can't see JSON being replaced by the one true XML any time soon.

    2. Re:One data model by melonman · · Score: 1

      XSLT is not in itself a data model, but it assumes a data model that is not DOM (although obviously all "working with XML" models tend to have a lot in common). XSLT/XPath 2.0 depends explicitly on the W3C XDM data model. XSLT 1.0 (which is what you tend to find in browsers) is a bit more murky, but, for example, you won't find Result Tree Fragments in DOM (thank goodness).

      Recently there has been a bit of revival in client-side XSLT processing, so the point isn't totally obscure...

      --
      Virtually serving coffee
  2. As always... by ojintoad · · Score: 4, Informative

    The link you really wanted where everything is on one page: http://www.infoworld.com/print/128080

    1. Re:As always... by Bratch · · Score: 3, Insightful

      This is why I read the comments before the article.

      --
      Beware of the Redittor who loans you a Sharpie.
    2. Re:As always... by Dumnezeu · · Score: 1

      But... there are no ads on that page. It must be a fake!

      --
      Yes, it's sarcasm. Deal with it!
    3. Re:As always... by noidentity · · Score: 3, Funny

      This is why I read the comments before the article.

      You must be new here. Nobody reads the article.

    4. Re:As always... by XxtraLarGe · · Score: 1

      Thanks. For some reason, the first page of the article seems to defeat Reader in Safari, but you can use Reader to read the rest of the article from page 2 on.

      --
      Taking guns away from the 99% gives the 1% 100% of the power.
    5. Re:As always... by icebraining · · Score: 1

      Actually, there is an HP/AMD ad in the print version here.

    6. Re:As always... by ThePhilips · · Score: 2, Funny

      ... except the Anonymous Coward guy.

      --
      All hope abandon ye who enter here.
    7. Re:As always... by mcvos · · Score: 2, Funny

      I wonder how he finds the time to read all that.

    8. Re:As always... by Anonymous Coward · · Score: 1, Funny

      I just divide my day in 240 hours. That way I can read 10 times as much...

  3. One standard does not mean one interpretation by germ!nation · · Score: 1

    The problem with browser rendered languages till now is that they have been at the mercy of interpretation differences by different vendors. Is this really likely to change?

    1. Re:One standard does not mean one interpretation by DNS-and-BIND · · Score: 1

      Letting the browser render the content to how the user sees fit is a feature, not a bug!

      --
      Shutting down free speech with violence isn't fighting fascism. It IS fascism!
    2. Re:One standard does not mean one interpretation by Anonymous Coward · · Score: 5, Informative

      Nope, HTML5 really makes the whole situation worse too, because rather than being a forward thinking spec, it takes everything that's been done wrong over the years, and makes it part of the standard. Then it adds in a load more stuff that appears half thought through (the video tag that doesn't do what it was originally intended for- standardised video), the semantic section tags, which only cover a tiny subset of the sections a site tends to have and which appears outdated before it's even launched (i.e. no comments section tags).

      The ideology behind HTML5 is rather than create a new spec that tells people how things should be done, make a spec that takes everything bad people have done and make it standard, so that those incompetent developers are now adhering to the standard.

      Overally it means more ambiguity, more jumble in the spec, stuff that might (has?) become obsolete before it's barely even used and that sort of thing.

      HTML5 will change the web alright, back to the philosophy of hack it together any which way, who cares about lack of maintainbility, interoperability, accessibility and so forth. This seems an extremely backward way of doing things when web apps are getting ever more complex, and average Joes who publish are publishing via web apps anyway mitigating the need for them to get their hands dirty with markup.

      HTML5 just doesn't come across as a professionally written spec, you compare it to other specs out there and it looks like it's been slapped together by a bunch of kids with no real experience of large scale software development.

    3. Re:One standard does not mean one interpretation by KingMotley · · Score: 1

      Are you from adobe?

    4. Re:One standard does not mean one interpretation by yeshuawatso · · Score: 1

      No because of the " interoperability, accessibility" portion of the post. Adobe Flash isn't about interoperability (Linux x64) and accessibility (Flash as a plugin).

    5. Re:One standard does not mean one interpretation by Anonymous Coward · · Score: 0

      Flash coder I see.

    6. Re:One standard does not mean one interpretation by vtcodger · · Score: 1

      ***Is this really likely to change?***

      Of course not.

      ***HTML5 is rife with rich capabilities***

      IT speak for "you'll be damn lucky if anything works on anything other than sometimes on the browsers that are tested to -- IE, Firefox and Chrome"

      ======

      I don't see how technology on computers can inoculate Web Page designers with common sense.

      --
      You can't see ANYTHING from a car, You've got to get out of the goddamned contraption and walk...Edward Abbey
    7. Re:One standard does not mean one interpretation by Nadaka · · Score: 1

      He is probably a disgruntled XHTML2 supporter, just like me.

    8. Re:One standard does not mean one interpretation by vlueboy · · Score: 1

      Kudos for your relative bravery in posting your comment (posted AC)

      The failure of standards is that they are always perverted, and giving Flash-like power to webpages will only improve the destructive power of Ads --without any additional plugins, and empowering ad-makers to bombard us in the relative peaceful environment that are iP*s, Blackberries, and Firefox-NoScript. At least I can turn of Flash and annoying Javascript layer ads in some browsers.

      That will change. HTML will do some cool things we can't visualize today, yes, but then my plain vanilla browser sure as heck won't have equivalents of say, "turn off HTML5 blink tag."

    9. Re:One standard does not mean one interpretation by mcvos · · Score: 2, Interesting

      More likely from the XHTML2 workgroup. I know a guy from that workgroup, and he has nothing good to say about HTML5. He did a really nice XForms presentation on ApacheCon once, though. Apparently, with XForms you can write Google Maps in a day or so. Really cool, but not part of HTML5.

    10. Re:One standard does not mean one interpretation by hkmwbz · · Score: 1

      Of course not.

      Actually, that is one of the things that will improve massively.

      --
      Clever signature text goes here.
    11. Re:One standard does not mean one interpretation by hkmwbz · · Score: 3, Insightful

      Nope, HTML5 really makes the whole situation worse too, because rather than being a forward thinking spec, it takes everything that's been done wrong over the years, and makes it part of the standard.

      No, it will make the situation better. It takes the real web into account, and standardizes behaviors that are already in use out there. At the same time, the spec is much clearer and easier to implement correctly because it also specifies error handling and such. In other words, the opposite of your FUD.

      Overally it means more ambiguity, more jumble in the spec

      No, the spec has been written to be clear to implementors how they should implement it properly.

      HTML5 just doesn't come across as a professionally written spec, you compare it to other specs out there and it looks like it's been slapped together by a bunch of kids with no real experience of large scale software development.

      Ok, so Google, Apple, Mozilla and Opera have no real experience from large scale software development? Heh.

      --
      Clever signature text goes here.
    12. Re:One standard does not mean one interpretation by hkmwbz · · Score: 1

      Yes. The HTML5 spec is much clearer for those implementing it, and browser vendors are trying to be compatible with each other as well.

      --
      Clever signature text goes here.
    13. Re:One standard does not mean one interpretation by shutdown+-p+now · · Score: 2

      HTML5 will change the web alright, back to the philosophy of hack it together any which way, who cares about lack of maintainbility, interoperability, accessibility and so forth.

      This has been the philosophy of the Web ever since HTML was first (mis)used to create applications rather than mark up textual data. What is this "back" you're referring to?

  4. "Offers one way of doing things" by betterunixthanunix · · Score: 4, Insightful

    HTML5 may offer a unified way to do things...but that does not mean that the other ways will just vanish. It will be a long time before HTML5 completely displaces Flash or Java applets, assuming that such a thing even happens. Frankly, I doubt that the popular browsers will even have a reliable implementation of the standard until at least 2013, so HTML5 won't really offer developers anything unified for a while.

    --
    Palm trees and 8
    1. Re:"Offers one way of doing things" by betterunixthanunix · · Score: 4, Insightful

      As you point out, developers will use a library that resolves the incompatibilities for them. More precisely, they will seek software the levels the field between browsers -- software that already exists, in the form of applets (Flash and Java) and HTML4/JS/etc. libraries. My point was that the current way to deploy applications on the web is not going to disappear just because HTML5 comes out, and that incompatibility between browsers will only ensure that the current methods stick around even longer.

      --
      Palm trees and 8
    2. Re:"Offers one way of doing things" by thijsh · · Score: 1

      They seem to agree on this, and think Flash is the way to go (see http://www.infoworld.com/print/125721). Either that is BS or this article is BS, they can't claim both. Everything they say could be said for Flash and vice-versa.

    3. Re:"Offers one way of doing things" by Lumbre · · Score: 3, Interesting

      Frankly, I doubt that the popular browsers will even have a reliable implementation of the standard until at least 2013

      I doubt IE will ever have a reliable implementation for anything. HTML5 surely aims to simplify web development, but MS aims to use their proprietary BS, tags, and implementations. Just look at their box model. Look at all the extra time we have to take to develop for IE users.

      Plus, there are accessibility issues we have to overcome. We also need to develop for that small fraction of the population who use text browsers, those who are blind and have text read to them, those who don't install Flash (for good reason), those that disable JavaScript, etc.

    4. Re:"Offers one way of doing things" by Raffaello · · Score: 1

      They seem to agree on this, and think Flash is the way to go (see http://www.infoworld.com/print/125721). Either that is BS or this article is BS, they can't claim both. Everything they say could be said for Flash and vice-versa.

      Sure they can have it both ways, just as long as it increases page hits on the infoworld website!

    5. Re:"Offers one way of doing things" by flaming+error · · Score: 1

      > we can make games that run on pc, xbox, and ps3 but we can't manage some browser quirks?

      We do manage browser quirks. It's just a huge time sink that takes away from productive work.

      Also, try the following exercise. Make a list of every game that works on every version of xbox, every version of playstation, every version of nintendo, and every version of Windows. If you get zero, make a list of the apps that run on any version of each platform. I think you will realize that web apps are, in practice, much more multi-version and multi-platform than games. You should also realize that comparing console games to web apps is like comparing apples to oranges, making the snark irrelevant as well as false.

    6. Re:"Offers one way of doing things" by mister_dave · · Score: 1

      Douglas Crockford of Yahoo seems a bit 'meh' about HTML5, he thinks it should have been focused on security. (starts 1m33seconds into video clip).

      He published an HTML5 wish-list back in 2007.

    7. Re:"Offers one way of doing things" by NJRoadfan · · Score: 1

      Whatever happened to XHTML taking over? I remember some people going crazy over it since it would simplify HTML (since HTML 4 was too bulky, whatever) and leave all the layout dirty work to CSS. Seems like HTML5 throws all that out and sticks with the status quo.

    8. Re:"Offers one way of doing things" by Anonymous Coward · · Score: 0

      It was a pointless search to begin with, but I did it for the lulz and now I'm happy because it turns out that duke nukem 3d is the one closest to being able of running everywhere

    9. Re:"Offers one way of doing things" by JasterBobaMereel · · Score: 2, Interesting

      From TFA ...Flash groupies joke about HTML5 being a time machine to take you back to 2000...

      Because it replaces Flash completely .... and they are worried

      --
      Puteulanus fenestra mortis
    10. Re:"Offers one way of doing things" by westlake · · Score: 1

      HTML5 may offer a unified way to do things...but that does not mean that the other ways will just vanish.


      Nor does it mean that new ways will not evolve outside the standard.

      The standards committee moves slowly. It is beset by commercial, nationalist and ideological rivalries - which the entrepreneur - the outsider - can cheerfully ignore.

    11. Re:"Offers one way of doing things" by jprupp · · Score: 1

      AFAIK Java applets died about half a decade ago. There are some relics here and there, but the web moved on already. Flash will follow. Probably at some point someone will invent more proprietary plugins for the web. I hope this time they don't last as long as Flash did, for the sake of a web based on open standards.

    12. Re:"Offers one way of doing things" by Nadaka · · Score: 2, Insightful

      What happened was that xhtml2 had two flaws.

      1: errors were treated like errors. That means that broken hacks made by graphic artists would result in an error message instead of a random attempt to render a broken document. This also made creating a partial implementation more difficult.

      2: No one implemented a reference implementation. So that web browser vendors would have to do all the heavy lifting.

      WHATWG formed and decided to take all the hacked errors and random implementations of browsers and make those errors the standard, then they added some cruft on top. Thus HTML5 was born. For some reason, W3C then abandoned the superior standard of XHTML2 and adopted the steaming pile that WHATWG dumped on them.

    13. Re:"Offers one way of doing things" by NJRoadfan · · Score: 1

      As usual, its all political, kinda like an open source app forking then re-merging. XHTML1 was fine, most folks implemented it. Sounds like they are just going to kludge an XHTML5 from HTML5.

    14. Re:"Offers one way of doing things" by ThePhilips · · Score: 1

      For some reason, W3C then abandoned the superior standard of XHTML2 and adopted the steaming pile that WHATWG dumped on them.

      You contradict yourself. How "standard" (as in "pile of paper") can be superior to actually working implementation?

      End-users (aka "content consumers") gain nothing from idealistic approach of pushing superior standard over working implementation. And HTML5 tried to address the needs of the end users by throwing bunch of fancy multimedia stuff into the standard. That to my limited knowledge wasn't even part of XHTML2.

      In the end, WHATWG has very little manpower to simultaneously create a great spec and fix all implementations - or at least persuade all vendors to fix their implementations. It was even founded not by the companies, but by the people implementing the browsers... The developers spoke, W3C, facing the choice of being made irrelevant, obliged.

      --
      All hope abandon ye who enter here.
    15. Re:"Offers one way of doing things" by roman_mir · · Score: 1

      I have only bad things to say about Flash to be honest, however unfortunately browsers are not yet ready to play movies (the only reason I use flash anyway).

      However saying that browser with HTML5 will be enough to completely get rid of a Java applet is most likely misleading.

      I have real reasons to disagree with this, primarily based on a couple of months of work I put into research and development trying all possibilities in a browser to have a truly desktop-like application developed. I started small, with a single screen developed that is the main app area, allows to add windows inside the main window and each window is split into 3 sections. Left and then the right is split into 2 more section: a table and a detail section.

      The table is loaded with many rows, possibly into tens of thousands, sometimes over a 100K of rows.

      To render this simple table with less than 10 columns of data in plain HTML takes an enormous amount of time (minutes). I tried using gwt, smart gwt, the incubator stuff, the coding is more complex than any GUI stuff I had to do before this, it the result is still a very slow rendering, whether with tables or with divs or with javascript, doesn't matter if I used the inner HTML string (the bulk table renderer in gwt) the result is always slow.

      Some will say: you are putting too much data into the table, paginate it, but it's not practical for my business case.

      Java applet loads half a million rows into a data table in seconds, browser with HTML/javascript/css just can't compete with that speed. Also the look and feel is exactly like a desktop application and HTML just can't do that, or it would take an extraordinary effort to achieve.

      I gave it a bunch or tries and I decided it is not worth all of the complications in terms of coding and it is impossible to achieve the necessary speed of rendering and it is very difficult to get a real desktop experience in just HTML/css/javascript.

      In HTML5 I probably would have to draw everything on a canvas to do exactly what I want, maybe that could be faster even than rendering an html table for example, haven't tried that yet, but then not everybody has HTML5 in their browser either.

      So until all browsers have some standard implemented that allows me to write a desktop like application in terms of look and feel and speed of rendering, while not making it extraordinary complicated to code to achieve this, I just can't do much but use a Java applet (which also allows me to double it as a stand-alone application and that's a plus.)

    16. Re:"Offers one way of doing things" by Nadaka · · Score: 2, Interesting

      I would hardly call html5 an actual working implementation. Hell, html4 isn't perfectly implemented in a good chunk of browsers yet.

      XHTML2 was an extensible format by definition. There was nothing there stopping you or anyone else from adding a video or canvas tag to it.

      A good specification needs to be consistent, it needs to be logical and well formed, it needs to be minimal but specific, it needs to address known problems with the previous specification.

      HTML5 is and does none of these.

    17. Re:"Offers one way of doing things" by mcvos · · Score: 1

      XHTML5 is nowhere near as advanced as XHTML2, however.

    18. Re:"Offers one way of doing things" by 0123456 · · Score: 2, Insightful

      You contradict yourself. How "standard" (as in "pile of paper") can be superior to actually working implementation?

      I hope you're not a software developer. The world is full of 'actual working implementations' which have caused years of pain for the sake of not spending a few days thinking it through on a 'pile of paper' before implementing, and then 'not having the time' to rewrite it once the blatant design flaws become obvious.

      Most of the worst ideas in the history of the web have come from taking some web browser's 'working implementation' and making it part of a standard.

    19. Re:"Offers one way of doing things" by oh_my_080980980 · · Score: 1

      Flash has already been displaced on the mobile platform by it's non-existence.

      Who the hell uses Java Applets anymore? Servlets, sure.

      You are well behind the times.

    20. Re:"Offers one way of doing things" by dave420 · · Score: 1

      It doesn't replace flash completely. Not even close.

    21. Re:"Offers one way of doing things" by horigath · · Score: 1

      Most of the worst ideas in the history of the web have come from taking some web browser's 'working implementation' and making it part of a standard.

      Yeah, like img. Man, what a bad idea that was.

    22. Re:"Offers one way of doing things" by ThePhilips · · Score: 1

      I hope you're not a software developer.

      Yeah, I am. And I'm saying it because I am software developer.

      Because my experience tells me that idealists rarely reach they goal. Because by definition ideal isn't achievable. (Ironically, in software it is. And now tell me how useful the ideal piece of software is?)

      Bad analogy time. Where would you prefer to live: in a perfect cave (as perfect as it could get) or in a modern house, probably with few flaws?

      Frankly, looking at HTML5 v. XHTML2 (well I was forced to look into it) I easily see that XHTML2 would have never became an widely adopted standard. I (and like 99% of the netizens) would rather have a web page displayed slightly (or not so slightly) incorrectly rather than not displayed at all. That whole concept was doomed from the inception.

      --
      All hope abandon ye who enter here.
    23. Re:"Offers one way of doing things" by Nadaka · · Score: 1

      actually it was. Specifically its handling of the alt attribute was bad.

      There already existed a standard way for dealing with alternate display of tags that are not understood by the browser, that was to simply ignore the tag and render whatever was inside. By not following that paradigm, it made graceful multiple-level degradation all but impossible.

      It is the same reason that the button element is better than input type=button|submit|etc.

    24. Re:"Offers one way of doing things" by Xest · · Score: 1

      You're having a laugh if you think HTML5 will settle the browser wars. Even before it's finalised the video tag has ended up as a terrible failure and Apple has already started trying to push Safari only demonstrations.

      I suspect that's just a preview of what's to come.

      Increased competition in the browser market doesn't stop any one vendor wanting to try whatever they can get away with to take as much control of the future as the web as possible. Even if HTML5 was the perfect spec (which I personally think it's far from being) there'd still be vested interests in screwing the other browsers in some way or another.

    25. Re:"Offers one way of doing things" by BZ · · Score: 1

      You missed the third flaw: it was by-design incompatible with the existing HTML. That is, there was no reasonable migration path for authors. Not only that, but the working group involved went out of their way to make sure that xhtml2 couldn't be implemented in the same software as xhtml1 and HTML (culminating in reusing the xhtml1 namespace, while defining different semantics for the same tag names).

      Basically, xhtml2 was an attempt to create a new World Wide Web that would be completely disjoint from the existing one: require a different browser, require separate authoring, etc. It failed, predictably, due to network effects; the existing web was too big and no one wanted to be the ones to drop support for it.

    26. Re:"Offers one way of doing things" by shutdown+-p+now · · Score: 1

      It will be a long time before HTML5 completely displaces Flash or Java applets, assuming that such a thing even happens.

      I don't even remember when I last saw a Java applet.

      As for Flash, I don't expect it to go away in foreseeable future as such (i.e. ActionScript and the platform as a whole), but I do expect the output of Adobe's Flash tools to be HTML5 a few years from now.

  5. Of course by ch-chuck · · Score: 3, Funny

    It will be adopted by progressive advertisers to achieve even greater degrees of annoyance per page

    I've seen the future and it's having a 50% off sale for the first 100 customers to click now!!

    --
    try { do() || do_not(); } catch (JediException err) { yoda(err); }
  6. HTML5 Will Help Change The Web by mlauzon · · Score: 2, Interesting

    HTML5 will help change the Web, however, the true change that will come to the Web is finally when the Semantic Web will take off; unfortunately no one knows when or if it ever will.

    1. Re:HTML5 Will Help Change The Web by Anonymous Coward · · Score: 0

      unfortunately no one knows when or if it ever will.

      I know. It won't.

    2. Re:HTML5 Will Help Change The Web by Yvanhoe · · Score: 5, Insightful
      Semantic web will take off when AI agents will be elaborate enough to fill in all the metadata thet humans don't care about (because they are still better than computer at rebuilding the context of an information). Right now user-entered information has this form : "#GoReds : Arrived at the stadium at 10AM woohoo!" and semantic web expects them to do something like

      "<user id=1983744 nick="#GoReds"/> : Arrived at the<location><reference>ElisParkStadiumSouthAfrica</reference><tag>stadium</tag></location> at <datetime><timezone>SouthAfrica</timezone><time>10:00:00</time></datetime> woohoo"

      The core assumption that users cared about filling correct metadata was wrong outside the research community (and even outside the IT research community). It will take off but you need software to fill in what was assumed users would do.

      --
      The Wise adapts himself to the world. The Fool adapts the world to himself. Therefore, all progress depends on the Fool.
    3. Re:HTML5 Will Help Change The Web by 0123456 · · Score: 1

      The core assumption that users cared about filling correct metadata was wrong outside the research community (and even outside the IT research community). It will take off but you need software to fill in what was assumed users would do.

      Now you just need to explain to me why I would _want_ my computer adding arbitrary information such as my location to every message I send.

      "Hi mum, I'll be over once I've finished watching a <reference>Goatse</reference><tag>video</tag>"

    4. Re:HTML5 Will Help Change The Web by WuphonsReach · · Score: 1

      HTML5 will help change the Web, however, the true change that will come to the Web is finally when the Semantic Web will take off; unfortunately no one knows when or if it ever will.

      The Semantic Web will never happen - until you solve the underlying problem that the person exerting all the effort to make it semantic reaps none of the benefits. People, on the whole, are lazy and will exert minimum effort.

      Tags, categorization, metadata only get applied by a tiny subset of people creating content. And for the most part, that extra data only gets added if the author needs it in order to keep track or find older content. All of the rest of the content gets published willy-nilly with no attempt at metadata. If you're lucky, there will be some OCD person out there willing to categorize things for free, but you can't depend on that.

      (Then there's the whole issue of people inputting false information into the system either out of maliciousness or fraud. Witness all of the nonsense that happens with the META keyword tag.)

      --
      Wolde you bothe eate your cake, and have your cake?
    5. Re:HTML5 Will Help Change The Web by rmadhuram · · Score: 2, Informative

      It will take off but you need software to fill in what was assumed users would do.

      OpenCalais (http://www.opencalais.com/) does most of that already.

    6. Re:HTML5 Will Help Change The Web by Xest · · Score: 1

      This is why HTML5's attempt at moving towards the semantic web by introducing tags like header and footer are misguided at best.

      The real solution would be to use a semantic defintion language and allow semantics to be attached to classes and ids like styles are. This would have a number of advantage:

      - It would maintain separation of concerns in large development teams, so that semantics could be applied to a site by someone who doesn't need to interfere with the developers/designers work

      - It would allow external providers to provide semantic definitions for sites that don't have them, or are no longer maintained, allowing browsers to look up external lists. This list could be provided by volunteers, or presumably before long a company like Google could largely automate the process creating it's own semantic provider service

      - It would make it easier to handle things like translation combining the above two features

      We learnt with CSS and Javascript that separating these things off is the smart route, quite why the HTML5 team hasn't learnt and realised this lesson in the face of semantics, which is more data we want to attach to web sites I don't know. Embedding something new directly in the spec isn't flexible enough, and doesn't work well, we've learnt this at least twice already.

    7. Re:HTML5 Will Help Change The Web by mister_dave · · Score: 1

      There's already a lot of metadata available that is ignored by search engines.

      Back in 2006 Slashdot covered an analysis of the tag content of of 1 billion web pages.. Dublin Core tags/attributes were found to be widely used, but at that time were ignored by the search engines.

  7. Comment removed by account_deleted · · Score: 4, Insightful

    Comment removed based on user account deletion

  8. I love flashblock by anss123 · · Score: 4, Interesting

    Will there be possible to have "CanvasBlock" on future browsers or are we stuck with CPU eating html5 animations?

    1. Re:I love flashblock by betterunixthanunix · · Score: 5, Insightful

      You most certainly can block it -- it resides nicely between two tags. The bigger question is, will asshole web developers use canvases in places where straight up text would have worked just fine, and force us to deal with their CPU eating abominations for no good reason at all?

      --
      Palm trees and 8
    2. Re:I love flashblock by Monkeedude1212 · · Score: 2, Insightful

      I think I'll just put the canvas tags right besides the body tags and save myself a lot of work instead of dealing with this whole Aech Tee emm Ell thing.

    3. Re:I love flashblock by Foofoobar · · Score: 1

      Well if you want examples of what can be done, I have demos of work I'm doing on add-ons to a game framework called Akihabara on Youtube. I've built clickable objects, menus, a scrollable console and am currently working on inventories and drag and drops items.

      So yes, you can do about anything that you used to do in Flash but you have a greater amount of control over it.

      --
      This is my sig. There are many like it but this one is mine.
    4. Re:I love flashblock by Quiet_Desperation · · Score: 1

      Yes, but it's an open standard CPU eating abominations for no good reason at all, and that's all the difference in the world!

      (Sound of round being loaded into chamber)

      Are you with us or against us, comrade? Answer wisely.

    5. Re:I love flashblock by anss123 · · Score: 1

      You most certainly can block it -- it resides nicely between two tags.

      Will blocking the tag stop the underlying javascripts from running?

    6. Re:I love flashblock by gaspyy · · Score: 1

      Canvas is already abused. Some/Many sites use it for font rendering - see Cufon and similar projects. Cufon was born as an alternative to sIFR, the flash method of doing the same thing.
      Of course, the sane way of doing this is by embedding fonts, but that way has its own issues (licensing, quality of fonts, etc.)

    7. Re:I love flashblock by NewbieProgrammerMan · · Score: 1

      I dunno, but I'm sure somebody will be glad to add a feature into their browser that will strip all scripts, tags, and other unspecified annoyance delivery methods out of untrusted pages before it renders them.

      And I'll be quite glad to use that browser.

      --
      [b.belong('us') for b in bases if b.owner() == 'you']
    8. Re:I love flashblock by LBDobbs · · Score: 1

      The bigger question is, will asshole web developers use canvases in places where straight up text would have worked just fine, and force us to deal with their CPU eating abominations for no good reason at all?

      It might be a big question, but it has a little answer: Yes. We have a very long history of "new" technologies becoming available followed by a consistant pattern of hack, crack, and crap from human beings. As long as regular people are doing regular things with the regular tools available are working in that new technology, it will never become standard. People are attached to their point of view and will fight to the death to defend cherished beliefs. It is human nature. It is also human nature to believe that our reason is the right/good/rational reason and others' reasons are the wrong/bad/stupid/irrational reasons.

    9. Re:I love flashblock by vlueboy · · Score: 1

      You most certainly can block it -- it resides nicely between two tags. The bigger question is, will asshole web developers use canvases in places where straight up text would have worked just fine, and force us to deal with their CPU eating abominations for no good reason at all?

      You just reminded me of spam where HTML TABLES allowed a spammer to painstakingly post text cell by cell into something that looked like a paragraph. That way, each letter was parsed separately and the word Viagra could not be filtered. Good thing that hasn't caught on since I saw it 5 years ago.

      I am curious what else they will use to circumvent filters, and whether spammers are willing to wait for another decade, which seems to be the length it will take IE10 to cover the standard AND be on every PC on the planet. Remember even 2010's IE8 has no HTML5, and IE9 won't support it well. MS will have to bundle their "perfect enough for HTML5" browser on yet another new version of their OS for HTML5 to take off

    10. Re:I love flashblock by Anonymous Coward · · Score: 0

      I don't see why not. Essentially, you are telling it that this given tag is a comment. If we can block javascript (which is also tagged), I am sure blocking canvas tags can be done just as easily.

    11. Re:I love flashblock by horigath · · Score: 2, Informative

      Remember even 2010's IE8 has no HTML5, and IE9 won't support it well.

      You should probably go look at MS's IE9 demo materials before you go making statements like this.

    12. Re:I love flashblock by Anonymous Coward · · Score: 0

      I hate to quote article bits like people quote from the bible. But here:

      "The HTML5 demos from Apple, for instance, are impressive, but they only run well on Safari."

      Besides, IE sucks at implementing standards (remember CSS and IE6) and is the lowest scoring major browser on Acid3 tests. Their own IE9 HTML preview shows an abysmally low score of 69 on their front page. That is a failing grade in some schools and barely passing in the rest of the world. Barely on the web won't cut it with developers and users, and they won't magically fix this by their remaining 6 month ETA of December 2010 if years haven't been enough to catch up to lesser known browsers.

      If you already have IE9's beta, which I doubt, there may be something else. I have run through MS's html5 testdrive and framerates still suck on IE8 compared to others. HTML5 won't get anywhere like that considering that enterprises wait for OS-side releases first, and then upgrade OS and all. Same with home users. Individually, other competing browsers are a long way from majority adoption. Together, all the other browsers are approaching the fateful 50%, but corporations won't yield to 5-30% browsers just yet. IE6 is still king.

    13. Re:I love flashblock by shutdown+-p+now · · Score: 3, Insightful

      You're joking, but I actually foresee this being used very widely to block copy/paste and web scraping.

    14. Re:I love flashblock by vlueboy · · Score: 1

      Or I could look at this and see how incomplete and far from reality it is:
      http://www.focus.com/images/view/11905/
      Furthermore, scores of 70 in the Acid test shortly before their release deadline tell me to expect mediocrity with HTML5, which they have struggled with for a lot less than their HTML4. By the way, IE8 shows a 20/100 in the score currently.

      Demos are incomplete by nature, but devs don't hide their demo miracles for the release date.

    15. Re:I love flashblock by Autonomous+Crowhard · · Score: 1

      Garanteed. Example: people currently use Flash to implement HTML links.

      Unblockable ads plus geolocation? I predict pain.

  9. Yeah right. by Cornwallis · · Score: 1

    "may even improve our ability to secure applications delivered via the Web..."

    Why do people even say these things?

    1. Re:Yeah right. by InsaneProcessor · · Score: 1

      "tapping local file storage"

      These kind of things just scare the security right out of me!

      --

      Athiesm is a religion like not collecting stamps is a hobby.
    2. Re:Yeah right. by MikePikeFL · · Score: 1

      Thank you. I read that and did a double take. I thought we were moving towards sandboxing the heck out of these things to keep them from accessing *stuff*.

      I suppose it depends on how it's implemented, and I will admit I have read precisely _nothing_ on it.

      But we all know how these things have historically played out... bleh.

      --
      "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway" -Andrew Tanenbaum
    3. Re:Yeah right. by mattholimeau · · Score: 1

      One reason. Money. I think we can all understand the horrible reality of the necessary evil of a marketing department.

  10. It Won't by bistromath007 · · Score: 1

    Somebody has to actually use it first.

    Wasn't Youtube supposed to be switching to it months ago?

    1. Re:It Won't by somersault · · Score: 1

      They had a test page for HTML5 stuff, but it would be pretty dumb to completely switch over to it before the specs are finished and all the main browsers have passable implementations of those specs.

      --
      which is totally what she said
    2. Re:It Won't by Foofoobar · · Score: 1

      Well developers are actually working in it right now. Considering the fact that there are no books on it published yet and browsers just started supporting it, it will start happening soon. For example, I have been working on adding functionality to a game framework called Akihabara. The game isn't complete and will eventually be multiplayer but it requires reinventing alot of stuff within the limitations of the web and HTML5.

      --
      This is my sig. There are many like it but this one is mine.
    3. Re:It Won't by Rockoon · · Score: 3, Informative

      The answer is No, YouTube has not switched, and has no plans to switch, from Flash to HTML5.

      They can't because some browsers (most notably Firefox and Opera) will not support H.264, yet nearly all of their content is already in H.264. Thats game over right there for YouTube converting to HTML5. Maybe in 5 years or more, and only when all major browsers support a single codec.

      --
      "His name was James Damore."
    4. Re:It Won't by drewness · · Score: 3, Informative

      The answer is No, YouTube has not switched, and has no plans to switch, from Flash to HTML5.

      They can't because some browsers (most notably Firefox and Opera) will not support H.264, yet nearly all of their content is already in H.264. Thats game over right there for YouTube converting to HTML5. Maybe in 5 years or more, and only when all major browsers support a single codec.

      But Google is also offering (or is in the process of offering) all YouTube videos as WebM, and the next versions of Firefox and Opera will have WebM support, and the dev channel of Chrome already has it. They really want to switch to HMTL5. I'm sure at this point they'd prefer IE and Safari to support WebM as well, but obviously they have the storage to keep every video as H.264 and WebM.

    5. Re:It Won't by DarkXale · · Score: 3, Informative

      Your information is out of date. Youtube is not going to use H.264 in the future, they're going to use WebM - which is Googles own format they've been pushing especially hard lately. http://www.youtube.com/html5 Opera, Firefox, and Chrome all have WebM support, and Internet Explorer has ways to add in support too. The only major browser that is out of the loop at the moment is Safari.

    6. Re:It Won't by stimpleton · · Score: 1

      And not only that, but when resampling the original videos to webM, they take the opportunity to up the quality and rez options from the original. And there is a big diff in viewing experience between 360p and 480p. But a few older ones are made to 720p, although thats not common as few non commercial HD cameras existing a few years ago.

      --

      In post Patriot Act America, the library books scan you.
    7. Re:It Won't by Anonymous Coward · · Score: 0

      . . . they have the storage to keep every video as H.264 and WebM.

      There will be no need to store both. YouTube is working with Adobe to make Flash support WebM.

    8. Re:It Won't by shutdown+-p+now · · Score: 1

      The only major browser that is out of the loop at the moment is Safari.

      Not for long (and ditto for IE <9). Adobe has already announced support for WebM in Flash, and that is likely what will be served to any browser not supporting it natively in HTML5.

  11. summary wrong on two counts about "one language" by lkcl · · Score: 4, Informative

    ahh, the summary is wrong both from a W3C DOM standards perspective, because java is listed as the 2nd language supported by the W3C. the summary is wrong from a second perspective in that language bindings to HTML5-compliant web browser engines such as XulRunner and WebKit have been available for years. if Microsoft actually intend also to follow the HTML5 process properly, then it can be said that MSHTML, through its COM interface, also offers other language alternatives for decades rather than just years.

    now it's a sad fact that nobody really *knows* that you can get at HTML5-compliant web browser engines and use DOM functions (3000+) and access DOM properties (20,000+) through XPCOM, or Glib/Gobject or COM, but it's perfectly possible. the best demonstration of this at its most extreme limit, taking advantage of absolutely all HTML5 W3C DOM features, is the http://pyjs.org/ pyjamas project, which abstracts the differences between these three major web browser engine types (XulRunner, Webkit and MSHTML aka Trident) and presents a single uniform API. on top this uniform API, normalising the discrepancies between the three engine types, an entire Desktop GUI Widget Set API has been created.

    so the statement that there is "one HTML5 language: javascript" is just nonsense. for further examples of accessing HTML5 DOM using python, some of which will lead through to links to Ruby accessing HTML5 DOM such as AppCelerator, see http://wiki.python.org/moin/WebBrowserProgramming

  12. advertising by binaryseraph · · Score: 1

    In a couple weeks Apple is unleashing a new ad campaign all using HTML5 (as opposed to the flash & rich media (java) ads up till this point). Granted they are all going to be only viewable on compatible browsers (everything but IE), it is going to be interesting to watch advertising take on this new medium.

    1. Re:advertising by yeshuawatso · · Score: 1

      "..Granted they are all going to be only viewable on compatible browsers (everything but IE)..."

      So basically they'll advertise to existing customers whom believe html5's unfinished spec is the way to go now? Wouldn't the campaign be more effective to simply e-mail all registered mac owners the html5 ads directly? This seems like the same html5 crap they put on their website that's only viewable via Safari on Snow Leopard when most of the demonstrations are simply css3 and fancy JavaScript image swapping.

      I could see Apple having an advertising campaign about html5, but not using JUST html5 as this would simply defeat its purpose of being an effective advertisement.

      "Check out the new Apple ads their amazing! Where can I see them, she asked. Just go to www.website.com, he replied. I'm there but all I see is a blank sidebar and header, she said in confusion. What web browser are you using. he asked. The one with the big E icon, she replied. Oh, you need to be on a mac, sorry, he responded in a snarly voice."

    2. Re:advertising by binaryseraph · · Score: 2, Interesting

      That is almost EXACTLY what I said to the publishers I work with when they asked me about the support for ad servers and HTML5 (which has no support, no surprise).

      I haven't actually seen the creative assets yet, so I don't know if its a campaign designed at actually selling a product (most likely is), or just keeping the brand image out there. My guess is what ever the ad is it will be interactive with the user. I've run a few small tests for amusement to see what could be done to enhance the advertising experience (sorry web users, they are going to get more integrated)- It can do some pretty neat stuff. But I digress.

      In either case, I agree making a campaign that eliminates IE just to use some technology that is in its embryonic phase is stupid. Not to mention when it is probably geared to people who already have a Mac. But that could also be the point. You already have a devoted user base, might as well advertise to them to sell them the latest product... Like an iPhone 4g.

      Granted I do use Firefox and Chrome via my PC... So maybe I'll buy a Mac after these ads. j/k

  13. Where is UVC webcam support? by AHuxley · · Score: 1

    When will we get webcam streaming as flash offers?
    So far we have text, a codec and artwork.
    When will web 2.0 be interactive again?

    --
    Domestic spying is now "Benign Information Gathering"
    1. Re:Where is UVC webcam support? by yeshuawatso · · Score: 1

      You can blame chatroulette (or the chatroulette penis army) for disabling that feature.

  14. Geolocation and space by master_p · · Score: 1

    In HTML5, the browser returns the latitude and longitude of the user to Javascript. Shouldn't the browser also return the planet, local star etc?

    How will ISS visitors browse?

    1. Re:Geolocation and space by vlm · · Score: 1

      In HTML5, the browser returns the latitude and longitude of the user to Javascript. Shouldn't the browser also return the planet, local star etc?

      How will ISS visitors browse?

      They have a lattitude and longitude just like the rest of us. It just varies rather quickly, a degree of longitude every twenty seconds, or so.. On the other hand moon colonies "sub earth longitude" only varies about a degree every two hours.

      Do sailors, without adblock, get endless banner ads "hot girls in The Middle Of The Atlantic Ocean want to meet YOU!"

      --
      "Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
    2. Re:Geolocation and space by vlm · · Score: 1

      On the other hand moon colonies "sub earth longitude" only varies about a degree every two hours.

      Err, if the earth didn't rotate, I mean. More like 15 degrees per hour plus or minus some rounding error for all non-earth orbit colonies. Pluto closest to 15 degrees/hr, moon furthest off.

      --
      "Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
    3. Re:Geolocation and space by drumbug1 · · Score: 1

      In HTML5, the browser returns the latitude and longitude of the user to Javascript. Shouldn't the browser also return the planet, local star etc?

      How will ISS visitors browse?

      ...a proxy at NASA.

    4. Re:Geolocation and space by maxwell+demon · · Score: 1

      You know that ISS stands for International Space Station?

      --
      The Tao of math: The numbers you can count are not the real numbers.
    5. Re:Geolocation and space by drumbug1 · · Score: 1

      Good call, good call. Let me rephrase: ...a proxy on EARTH. Better?

    6. Re:Geolocation and space by shutdown+-p+now · · Score: 1

      In HTML5, the browser returns the latitude and longitude of the user to Javascript. Shouldn't the browser also return the planet, local star etc?

      There's IP lookup for that.

  15. "Change the web"? by dbet · · Score: 1

    An ambitious slogan. Things may become easier or faster, but this certainly won't change the web in the same way that say, the web changed how I read the news or how I shop for furniture.

  16. Where have I heard this before? by shikaisi · · Score: 4, Funny

    One language (JavaScript) to rule them all, one data model (XML and DOM) to find them, one set of layout rules (CSS) to bring text, audio, video, and graphics and in the darkness bind them.

    Why do I have a bad feeling about this?

    --
    No left turn unstoned.
    1. Re:Where have I heard this before? by slick7 · · Score: 1

      One language (JavaScript) to rule them all, one data model (XML and DOM) to find them, one set of layout rules (CSS) to bring text, audio, video, and graphics and in the darkness bind them.

      Why do I have a bad feeling about this?

      Really, advances in tech is alright, but security remains the issue (something about security and freedom comes to mind). I feel that there is something about the porosity between the user and the web/cloud/network. The transfer of information between elements within a web page seems to be almost transparent. What assurances are there that malicious content is filtered out.
      Bad things have been done in the past under the guise of diplomatic immunity.

      --
      The mind conceives, the body achieves, the spirit manifests.
    2. Re:Where have I heard this before? by Anomalyst · · Score: 2, Funny

      ... in the darkness bind them.
      Why do I have a bad feeling about this?

      Is it kosher to mix LoTR and Star Wars metaphors?

      --
      There is no right to feel safe thru security vaudeville at the expense of everyone's freedom, privacy and tax money.
    3. Re:Where have I heard this before? by mcgrew · · Score: 1

      We doesn't know, does we? Nasssty W3C. We hates them, we hates them ALL!

    4. Re:Where have I heard this before? by BForrester · · Score: 1

      ... in the darkness bind them.

      Why do I have a bad feeling about this?

      Is it kosher to mix LoTR and Star Wars metaphors?

      You stuck up, half-witted, scruffy-looking Nerf herder. Go back to the shadow. YOU SHALL NOT PASS.

    5. Re:Where have I heard this before? by shikaisi · · Score: 1

      Call me out of touch but I had no idea this phrase came from Star Wars. I have literally never seen any of the Star Wars movies. I must be channeling George Lucas. Scary!

      --
      No left turn unstoned.
  17. One data model? by gnalre · · Score: 1

    one data model (XML and DOM)

    Personally I'll be sticking to JSON

    --
    Choose your allies carefully, it is highly unlikely you will be held accountable for the actions of your enemies
  18. I know what we must do by RockMFR · · Score: 1

    We must take the HTML5 specification and throw it into the Cracks of Doom. That is the only way to stop Ian Hickson from destroying the World of Men.

    1. Re:I know what we must do by slick7 · · Score: 1

      We must take the HTML5 specification and throw it into the Cracks of Doom. That is the only way to stop Ian Hickson from destroying the World of Men

      Remember, Frodo failed in his quest. It took a fuckup to permanently trash everything.

      Also, what's with this location thing? Hi, I am anonymous, Long 112 23' 26" East, Lat 35 15' 47" South; catch me if you can.

      --
      The mind conceives, the body achieves, the spirit manifests.
    2. Re:I know what we must do by Dracos · · Score: 1

      Agreed. HTML5 is full of crazy stuff, and few realize yet because video, canvas, and the other eye candy has been getting all the attention. Tag soup by default... I'd rather not go back to 1996. The return of some presentational tags (b, i, but not u) now with snazzy new presentational definitions (b really means bold, but we'll throw in big semantic-sounding words to appease the non-visual crowd).

      Good thing Hixie's l tag (for line of text, to kill all the natural text flow in block elements) never went anywhere. Did the ping attribute ever get accepted? I sure would like links I click echoed to Google/Facebook/spammers/etc so they can know that much more about my browsing habits. Not.

    3. Re:I know what we must do by Anonymous Coward · · Score: 0

      Good thing Hixie's l tag (for line of text, to kill all the natural text flow in block elements) never went anywhere.

      Actually, XHTML2 made that up. It was meant to be a <br> replacement, so you could easily style individual lines when you do actually want them, like poetry or code. Nice try, though.

  19. Waka-Waka Beep Waka-Waka by pinkushun · · Score: 1

    Yet another technology to implement Pacman with :D

  20. Chickens and eggs by billtom · · Score: 1

    When a true random sampling of internet users shows 80%+ of those users using browsers with good HTML 5 support, then I'll start using HTML 5.

    Until then, as an internet developer for a small business, it's still HTML 4. We don't have the money to do both and we have to go where the users are.

    1. Re:Chickens and eggs by mcgrew · · Score: 2, Insightful

      That's a wise choice I'm not sure others will follow. If possible, it's always best to use the oldest specs that are still supported that will actually do what you want the page to do.

      As to chickens and eggs, the egg came first, as any palientologist or biologist will tell you. Chickens aren't the only animals that lay eggs. It's ok if your egg lays dinasaurs, as long as the dinasaur is well trained.

    2. Re:Chickens and eggs by Myopic · · Score: 1

      Smart. It's always better to chase technology than to be on the forefront of the obvious coming wave. First movers are always losing in the marketplace.

  21. better implement CSS3 etc. first... by Lazy+Jones · · Score: 1

    I'd be happier if we hadn't had a moving target to work with for the past 15 years, with new W3C specifications becoming the vogue while major browsers still failed to implement older ones correctly. Also HTML5 is more "different" than "groundbreaking", which will just lead to more incompatibilities in browsers without a big benefit.
    How's the W3C reference implementation coming along by the way? :-P

    --
    "I love my job, but I hate talking to people like you" (Freddie Mercury)
  22. Not again? by thexile · · Score: 1

    Do we really need to have a 'HTML 5 rules' article monthly?

    1. Re:Not again? by ColdWetDog · · Score: 1

      You want another iPad / iPhone article?

      Oh ... wait.

      --
      Faster! Faster! Faster would be better!
  23. too bad its runs different in all browsers by SQLz · · Score: 1, Insightful

    HTML5 is just another level of bullshit to worry about when writing a web page that needs to render properly on multiple browsers.

  24. Almost humorous by jkiol · · Score: 1

    As web designers look to increase the functionality of their websites, people are always looking for ways to reduce their capabilities. Flashblock/Adblock/Pop-up blockers and finally even private browsing features built right into web browsers. Why is there this huge disconnect between what designers are doing v.s. what people like to see? I understand the need for ads, but the seizure inducing flash pop-ups are just insane, don't designers realize that they are actually irritating their potential customer rather than enticing them to click on the ad?

    1. Re:Almost humorous by delinear · · Score: 1

      Do you seriously believe these decisions are down to designers? They're driven by metrics - unfortunately the incredibly annoying flashy crap almost always works better than (i.e. better return on investment) the subtle, toned-down look, and so that's what we're stuck with. The second you decide to put ads on your site (unless you're going to get draconian and risk scaring away your market) you open yourself up to the whims of an accountant with an analytics report who doesn't know the first thing about design, just that flashy brings in the bucks.

    2. Re:Almost humorous by mcgrew · · Score: 1

      Why is there this huge disconnect between what designers are doing v.s. what people like to see?

      Because greed overrides wisdom and intelligence.

    3. Re:Almost humorous by Myopic · · Score: 1

      No, they don't realize that. That's the problem. The solution is AdBlock Plus.

      Another solution would be to get everyone in the world on the same page regarding how annoying an ad is permitted to be. I don't like to wait around for things that will never happen, so I just go ahead and use AdBlock.

  25. Security? by cgenman · · Score: 4, Insightful

    HTML5 will improve security

    While I love many things about HTML5, the idea of throwing out rendering libraries and starting again from scratch does not necessarily fill one with confidence about the security of the tools. Sure, less reliance on plug-ins means less opportunities for 3rd party security holes. But doing everything in the browser code itself also means that the potential attack vectors have more direct control over the machine. Plus any new library is going to have security vulnerabilities for a while.

    I'm not saying HTML5 is insecure. But let's not kid ourselves: there will be a year or two of scrambling to fix new attack vectors.

    1. Re:Security? by nine-times · · Score: 1

      Over the long term, though, security should be better then... Flash, for example. You might disagree, but I figure that having multiple open-source implementations should be more secure than having a single closed-source implementation.

      For starters, having multiple open source implementations means a more heterogeneous environment, decreasing the likelihood of a single vulnerability affecting everyone. Second real competition should keep the developers working hard to keep their browser secure. Finally, I'm among those who think that being open source probably means that the software is more secure, though I suppose that's a complicated issue on its own.

      So yes, you're right. We'll probably see more vulnerabilities in the short term while everyone figures things out. Over time, though I think we'll be better off.

  26. CHANGE IS ALREADY HERE by Digana · · Score: 4, Interesting
  27. There is HTML5 by MemoryDragon · · Score: 1

    And there is Microsoft only doing a subset of the spec, and users expecting to get the latest whiz bang stuff backported to IE6 and even worse IE6 mobile...

    1. Re:There is HTML5 by mcgrew · · Score: 1

      users expecting to get the latest whiz bang stuff backported to IE6 and even worse IE6 mobile...

      There's an IE6 Mobile? You mean that there's actually a phone browser that's worse than OpenWave?

    2. Re:There is HTML5 by Myopic · · Score: 1

      I figured Microsoft would just sit on their thumbs and wait for Google and other third parties to release hacks/updates to IE, the way they've done for years. So don't worry! IE will be fully HTML5 compatible, despite Microsoft's worst efforts.

  28. The one real data model: XML by improfane · · Score: 5, Interesting

    Why are we using HTML5 and not XHTML 2?

    XML abuses aside, XHTML is superior to HTML5.

    HTML5 requires a more complex parser than XHTML ever will. XHTML can be validated for correctness, HTML5 is more difficult to do so.

    I honestly don't understand the reason for following the HTML route. XHTML is already in an industry understood format that tools already exist for.

    The market rarely reflects a superior technology. I still support XHTML. HTML5 is messy, ugly and a kludge.

    All that needs to happen is to transfer some of the newer tags of HTML5 into XHTML. Perhaps we can borrow from the microformat peeps? Afterall, it's supposed to be modular.

    --
    Slashdot needs Geekcode | Can anyone recommend any good SCIFI? My tastes: Foundation, Startide Rising, CITY, Ringworld,
    1. Re:The one real data model: XML by CRCulver · · Score: 4, Insightful
      In the past, whenever someone has recommended XHTML on Slashdot, there are generally been cries of "It's too much work to make it validate!" Now, that might be true for Joe Average who just wants to put up a simple personal website (but he's more likely to use a CMS anyway), but if you're an experienced developer, than I for the life of me can't understand how writing valid XHTML can be considered too hard.

      Closing tags, for example, should come naturally. Do you leave parentheses out when you're writing in a scripting language? Emacs at least at NXML-mode which shows you immediately if you've made a mistake that will not let the document validate.

      And anyone who has had to extract data from a webpage ought to adore valid, semantically-meaningful XHTML, because it makes the process effortless whereas HTML requires specialized, not always accurate libs and a lot of work.

    2. Re:The one real data model: XML by Jeremy+Visser · · Score: 5, Informative

      There is nothing stopping you from using well-formed XML in your HTML5, or serving your document as application/xhtml+xml (explicitly stated in the HTML5 spec). Serving HTML5 as proper XML is dubbed "XHTML 5". It uses the same doctype. All the new tags -- video, audio, section, header, etc. are supported, but obviously the lax markup features of HTML5 (like being able to omit most tags) no longer apply.

    3. Re:The one real data model: XML by grumbel · · Score: 1, Interesting

      XML abuses aside, XHTML is superior to HTML5.

      HTML can be loaded incrementally, XHTML can't, as you can only validate the document when you have all of it.

    4. Re:The one real data model: XML by Mekabyte · · Score: 1

      You can use XML-conformant HTML 5. It's called XHTML 5 (read the spec).

    5. Re:The one real data model: XML by ThePhilips · · Score: 1

      HTML5 requires a more complex parser than XHTML ever will.

      I guess that parsing time is a fraction of the whole time required to render the page: text rendering, displaying images and running JS.

      As I have never wrote a HTML parser, I can only draw analogies with other fields. E.g. in source code compilation most of the time is spent in optimizer, not parser. Even when optimizer is off, the times are still dominated by (1) the reading of all the source files (in C - headers) from disk and (2) semantics validation and code generation.

      --
      All hope abandon ye who enter here.
    6. Re:The one real data model: XML by XanC · · Score: 3, Informative

      Yes it can. Firefox (at least) does so. If it gets to the end of the page and find it's invalid, THEN it throws up the error, even if it's already rendered part of it.

    7. Re:The one real data model: XML by mortonda · · Score: 3, Interesting

      Why are we using HTML5 and not XHTML 2?

      XML abuses aside, XHTML is superior to HTML5.

      Go read http://diveintohtml5.org/

      Essentially, the argument is, make it easy for the users - the web programmers, not the browser programmers, and to allow the browsers to incrementally implement the standard, rather than an all or nothing that no one will do. . Telling the browser to error out when the html is not correct or supported is user UNfriendly. HTML5 provides a graceful way to handle it.

    8. Re:The one real data model: XML by Tarlus · · Score: 2, Interesting

      I'm with you on this. It took me a while to get a good feel for valid XHTML strict. But I like the tight specification, because it makes the markup very consistent. (Ex: lowercase only, quotes for values assigned to parameters, closing slash on unclosable tags. Such as
      .) I've been seeing some HTML5 examples which seem to lack that same OCD level of control and it kinda makes me twitch. More user friendly, yes, but I've come to enjoy consistency. That's my preference and it's what works for me.

      Most of the new elements in HTML5 look like alternatives to div's with unique ID's ( vs

      ) and I can see where it would make style sheets a little cleaner, and the intended layout of a document a bit more clear. But it seems to be, as you say, messy. Advantageous, though.

      The kludge comes from new capabilities that formerly required Javascript. I rather prefer the static-ness of HTML and reliance on a script for the dynamic-ness, but times are changing, and dynamic pages are where it's at. Might as well simplify their development.

      Not sure what the point of this post was, but eh.

      --
      /* No Comment */
    9. Re:The one real data model: XML by Tarlus · · Score: 1

      And of course, I forgot to post that as plain old text. So my tags were rendered. Blah.

      (Ex: lowercase only, quotes for values assigned to parameters, closing slash on unclosable tags. Such as <br />.)

      Most of the new elements in HTML5 look like alternatives to div's with unique ID's ( <header> vs <div id="header">)

      --
      /* No Comment */
    10. Re:The one real data model: XML by lee1 · · Score: 1

      You can use xhtml syntax in html5 documents. To make your xhtml file into an html5 file, just change the doctype, and you're done. Some of the problems with xhtml documents, besides draconian error handling (which some see as an obstacle, although I don't) are: must serve with xml mimetype, which is not handled by IE, so you must break standards by serving to IE as html (which of course requires you to sniff for browser type); can not use document.write, which means it's awkward to include Google advertisements on your page (must use an iframe). html5 lets you use xhtml syntax in a more easily deployable document, and even lets you deploy as real xhtml, with the xml mimetype, just like xhtml 1 or xhtml2. If you use the xhtml version of html5 you can use inline SVG and mathml, which is very nice. So what is the problem?

    11. Re:The one real data model: XML by DragonWriter · · Score: 1

      Why are we using HTML5 and not XHTML 2?

      Because HTML5 has better backward compatibility to existing HTML documents (and, for that matter, the model of XHTML 1.x) than does XHTML2, and adds features that are more useful to content providers and developers in delivering content and applications that are useful to end users.

      XHTML2 may have had some ideas that are, in their area, superior to HTML5, but is overall inferior in terms of features. Being XML-only (unlike HTML5, which supports an XML rendition but also supports a non-XML style) is certainly an advantage in terms of static validation and ease of parsing, but its not a real significant end-user benefit.

      Essentially, XHMTL2 is a more radical departure from the existing established technology in areas where that departure lacks a clear and compelling benefit, and does less in the areas where there is a clear, compelling, and easy-to-realize benefit offered.

    12. Re:The one real data model: XML by mcvos · · Score: 1

      Why are we using HTML5 and not XHTML 2?

      Because XHTML 2 is designed by academics, while HTML 5 is cobbled together by browser makers.

      Browser makers apparently have different concerns. They don't care so much about abstractions and separations of concerns, and more about how easy it is to implement a renderer for it and how it will perform. Browser makers are probably less ambitious and more pragmatic. Or maybe they want to mark this out as their territory, instead of having other people tell them what to implement.

    13. Re:The one real data model: XML by Ant+P. · · Score: 1

      Why are we using HTML5 and not XHTML 2?

      HTML5 is more than vapourware, and provides new features that are useful to people making real-world websites.

      XML abuses aside, XHTML is superior to HTML5.

      That is not logically possible when XHTML is a subset of HTML5.

      HTML5 requires a more complex parser than XHTML ever will.

      Guess what? The real world isn't a pretty theoretical little flower. HTML5 defines consistent error handling for content on the existing internet, not the non-existent one.

      XHTML can be validated for correctness, HTML5 is more difficult to do so.

      The code exists for both already, so this is a moot point.

      I honestly don't understand the reason for following the HTML route. XHTML is already in an industry understood format that tools already exist for.

      Because we're sick of waiting decades for the fucking W3C to do anything. They've procrastinated themselves into irrelevance.

      The market rarely reflects a superior technology. I still support XHTML. HTML5 is messy, ugly and a kludge.

      Is BASIC also messy, ugly and a kludge to you? Would you say the world would be better off if C64s came with Haskell instead? Get real.

    14. Re:The one real data model: XML by 0123456 · · Score: 1

      HTML5 is more than vapourware, and provides new features that are useful to people making real-world websites.

      I note you said 'people making websites' and not 'people using websites'. A better method of pushing ads down my throat is not a benefit to me.

      Frankly, the obvious ways these 'new features' will be abused look like a good justification for going back to gopher.

      That is not logically possible when XHTML is a subset of HTML5.

      Making something bigger does not logically make it better: in fact, bigger often means worse. A five hundred pound girl might be superior to Natalie Portman in sumo wrestling, but I know which one I'd prefer to date.

    15. Re:The one real data model: XML by maxwell+demon · · Score: 1

      XML abuses aside, XHTML is superior to HTML5.

      That is not logically possible when XHTML is a subset of HTML5 [whatwg.org].

      That is logically possible, because removing something may be an improvement.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    16. Re:The one real data model: XML by Anonymous Coward · · Score: 0

      XHTML only "works" right now since browsers are tolerant with it. If they actually would just report "missing end tag at line 313" and give up it would've died already. In my experience 80% of the XHTML pages out in the wild don't validate, and a lot aren't even well-formed.

    17. Re:The one real data model: XML by severoon · · Score: 1

      Yea, I don't understand this either—to me, XHTML is a much better paradigm that should have been carried over into HTML5 without a doubt.

      As for whether it's too hard to make it validate: please raise your hand if you plan to hand-craft large amounts of HTML5/XHTML anyway. If you have your hand up, you're doing it wrong. Use GWT. Let the compiler do the work. Is letting the compiler do the work not a familiar concept to you, as a developer? :-)

      --
      but have you considered the following argument: shut up.
    18. Re:The one real data model: XML by Just+Some+Guy · · Score: 2, Informative

      HTML can be loaded incrementally, XHTML can't, as you can only validate the document when you have all of it.

      Sure you can. It's called a streaming parser, and SAX (for Java) started in 1997. This isn't exactly new technology. And in any case, parsing well-formed XML is always easier than hacking at tag soup.

      --
      Dewey, what part of this looks like authorities should be involved?
    19. Re:The one real data model: XML by Anonymous Coward · · Score: 0

      Stupid post needs smarter answer. There's XHTML5, you idiot. Also superiority was so overrated, it's not funny. Plus draconian error handling remains the dumbest thing ever!!!

    20. Re:The one real data model: XML by scorp1us · · Score: 1

      I never understood this either, until I fell in love with XPath.

      It seems there are 2 types of developers.
      1. Developers who want to hand code wedb content and just hope it looks ok
      2. Developers who want to have software generate code, that can be queried, transformed and made usable by something other than eyeballs.

      Before I became the latter, I never cared. Now that I make the occasional "screen scraper" I see the complete value in having a structured document that will validate. We need XHTML to be the standard because it allows us to interconnect sites and data without requiring the data provider to provide and maintain API. With X[*]ML the XPath/XQuery/XSLT and http are the API.

      --
      Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
    21. Re:The one real data model: XML by horigath · · Score: 5, Informative

      HTML5 includes an XML model which is optional—much like the previous HTML 4/XHTML 1.x system. I expect many developers to use the XHTML syntax in their HTML5 projects for all of your reasons. Meanwhile, the proposal for XHTML 2.0 was unsuccessful because it was created almost completely without regard for what browsers and coders were already doing—it's incompatible with previous formats, where HTML5 was designed in part to gracefully extend the old formats and incorporate emergent practices already in use on the web.

    22. Re:The one real data model: XML by Anonymous Coward · · Score: 0

      try being a man for once and tap the hidden power of smil with a dash of vrml. or keep this kind of stuff and all the sluggish css pages to yourself.

      it's unwelcome to all, with the exception of a few poncy web 'developers.' cheers.

    23. Re:The one real data model: XML by Nadaka · · Score: 1

      That does not make any sense. XHTML is far easier to render than a random assortment of tag soup with no clear expectation of how it is supposed to actually render.

    24. Re:The one real data model: XML by Xest · · Score: 3, Insightful

      The issue isn't that it's not possible, the issue is that HTML5 seems to tend towards HTML markup over XML markup.

      Effectively it pushes bad practice as standard because there really is no benefit to HTML markup other than the ability to write sloppy markup, which is stupid.

      People publish using tools nowadays, leave markup to the professionals (not that writing well formed XML is hardly a difficult job). If people can't understand how to write well formed XML markup then they've got no chance of understanding CSS and Javascript so might as well give up and use a web app to publish for them anyway.

      Best to support the people who actually write web apps to make it easier to write better web apps, than to support sloppy developers who use HTML markup "because it's easier".

    25. Re:The one real data model: XML by mcvos · · Score: 1

      If you start with nothing, yes. But they had already figured out how approximately to render a random tagsoup.

      With thanks to Netscape and IE, which set the standard in supporting random crap.

    26. Re:The one real data model: XML by Nadaka · · Score: 1

      Even so, the complexity of handling the huge number of exceptions and expected behavior for broken code is a vastly larger problem than validating and rendering xhtml.

    27. Re:The one real data model: XML by mcvos · · Score: 1

      But that's the entire point: the browser makers wanted to handle those exceptions, and not present the user with an error message every time it wasn't perfect XML.

    28. Re:The one real data model: XML by shutdown+-p+now · · Score: 4, Informative

      HTML can be loaded incrementally, XHTML can't, as you can only validate the document when you have all of it.

      You don't need to validate an XHTML document in order to start rendering it.

    29. Re:The one real data model: XML by Anonymous Coward · · Score: 0

      The main advantage of HTML5 is that in a few years, companies can start charging for proprietary stuff that they are allowing people to use right now. "First one's free." comes to mind.

    30. Re:The one real data model: XML by Jeremy+Visser · · Score: 1

      The issue isn't that it's not possible, the issue is that HTML5 seems to tend towards HTML markup over XML markup.

      I don't get why that is an issue. If you want to write clean markup, write clean markup. And today's browsers are perfectly capable of handling all manner of weird and wonderful markup.

      The only situation I can think of where lax HTML5 markup would cause you a problem is if you're deploying to a custom mobile device or custom-written browser for a specific deployment. But in that case, you'd likely have control over both the input and output, in which case what I said above -- just write damn clean markup -- still applies.

      If I saw problems with my browser struggling to render all the HTML5 content out there, I'd agree with you. But the reality is that browsers are mature, and can deal with the markup out there. And those that are writing markup are testing. It's a cycle that is working in practice, not just theory.

    31. Re:The one real data model: XML by Anonymous Coward · · Score: 1, Insightful

      There may be nothing stopping me from using well-formed XML in my HTML5, but I won't be scraping my own website. I'll be scraping other people's, who very possibly aren't using well-formed XML. It's not just a question of what it lets me, as a fairly knowledgeable and responsible developer, do.

    32. Re:The one real data model: XML by Xest · · Score: 1

      "I don't get why that is an issue. If you want to write clean markup, write clean markup. And today's browsers are perfectly capable of handling all manner of weird and wonderful markup."

      Then I would wager you're not a developer right, or at least not a professional developer?

      HTML markup will spread, because:

      - People with a lack of understanding about the intricacies of HTML vs. XML markup will go for HTML because it's the one that's being pushed

      - Companies developing solutions hiring cheap developers to maximise profit are often driven by buzzwords, and HTML5 is a buzzword that such low-quality development companies will target without focus on the benefits for clients of XML

      So what's the problem of increased HTML markup? Well the most prominent ones are:

      - Page scraping becomes more of a nightmare on HTML markup sites meaning less interesting pages are likely. You can no longer simply just use the XML toolkit that comes with just about every language as standard nowadays and will need an HTML5 parser, this greatly increases bloat also.

      - Interoperability options for dealing with proprietary black box systems are greatly decreased, working with XML is easy, you can just XSLT transform the output into something that fits your system, then XSLT transform it back to their system, this means interfacing with legacy or proprietary stuff is easy.

      So you see, the issue isn't what browsers can/can't render, the fundamental issue is for applications that use web data. That's suddenly going to become a lot harder, that means we're almost certainly going to see a decrease in innovation as working with web data becomes less trivial. Effectively XML markup means that a web page isn't just a document you look at, it is in itself data that can be manipulated, used, and transformed in all sorts of wonderful ways, and as it's such a prominent standard, it's also largely futureproof in this respect. This isn't the case with HTML markup.

      The problems wont be for the average joe, they'll be for the innovators, and the developers that work with data, data that may need to be manipulated for years to come. Pushing the web towards XML was the best thing ever for the web as it opened up so many doors and made so many things easier to do, primarily it increased interoperability. The HTML5 spec is undoing that good work- and that's before you step outside the markup debate and look at the guts of the HTML5 spec itself and see what other things it makes worse, but those are another discussion, and look like they've already been covered elsewhere in this discussion.

    33. Re:The one real data model: XML by Xest · · Score: 1

      "Meanwhile, the proposal for XHTML 2.0 was unsuccessful because it was created almost completely without regard for what browsers and coders were already doing"

      Certainly for professional developers XHTML2.0 was a massive step forward as it focussed on making working with XHTML fit into existing development ideologies and technologies much more gracefully. The only coders it was bad for were those who are hobbyists and don't have the will to learn how to produce proper code and proper markup.

      The HTML vs. XML markup is the obvious choice, XHTML usage has grown enormously over the years, and is far better for developers because XML data manipulation is supported pretty much everywhere. In contrast, HTML5 has been pushing HTML markup over XML markup with XHTML5 rarely being mentioned as anything other than a footnote. How can you possibly suggest that XML, a widely supported format being treated second class to HTML which will inevitably increase the proportion of people using HTML rather than XML syntax markup is better for coders?

      The real problem is browser developers, as always. The same folks who have been keeping the web an incompatible mess are now the ones controlling the spec even. They've demonstrated over the years their inability to do things right, and do them well with the amount of incompatibilities, the vast amount of security exploits and bugs and so on, so why the fuck are these people now running the show to the detriment of professional coders- the ones who have to actually develop the tools, content and backends? That's the problem here, and that's why many professional developers who know a bit about separation of concerns, interoperability, maintainability and so on are unimpressed by HTML5.

      XHTML2 was far from perfect, but it's extremely dishonest to suggest HTML5 does professional developers any favour over XHTML2 because it does the opposite, HTML5 causes developers far more headaches than a purely XML based approach would and does.

    34. Re:The one real data model: XML by Anonymous Coward · · Score: 0

      Again with the splinter. Why not use JSON as the data model?!?

    35. Re:The one real data model: XML by Anonymous Coward · · Score: 0

      I would prefer if web sites were not just given a red/green/yellow based on SSL link quality/payment but also on website structural quality. If you follow the HTML spec, it's yellow. If it parses without hacks, it's green. If it doesn't, it's red.

      That way users have an easy and feeling-wise way to know if they're on a decent site. Also, it'll kick management & marketing into a "we need XHTML compliance" mood which can only be good.

    36. Re:The one real data model: XML by ivucica · · Score: 1

      Because, um, the "browser developers" are professional developers, too? Because, well, they know what's easiest for them to implement, and you are free to go and develop a non-browser-based app if that makes you happy?

      I don't think most of /.ers have a right to be smug and condescending to browser developers. They are the ones trying to simplify things for themselves, and therefore for you. You think that Opera or Webkit developers, who have to maintain tons of code just to maintain compatibility with bugs produced by other developers, don't want those inconsistencies to disappear? You think they wouldn't like to simplify web, and hence simplify development for you and I? Guess what, they do.

      I dumped XHTML1 because it doesn't have IFRAME as part of the spec, and several other cool tag attributes that browsers supported, but weren't in XHTML spec. I really needed some of those tag attributes, and was surprised that they weren't supported. I ended up going to HTML4 transitional, and now I'm just transitioning to HTML5.

      I have no idea if XHTML2 changed anything. I love the idea of having everything perfectly structured as in XML, but not at expense of my development time. My primary goal is presenting an interface to the end-user, not to make things easier for a screen-scraper. HTML5 is good enough for me. Spec writers (browser developers) did a nice job actually addressing some of the needs: local storage, for example, although I'd really prefer if I were given a local sandboxed filesystem (which wasn't in the specs last time I checked). It's sad they didn't agree on codecs, it's sad that many browsers still don't implement their own standards for input field types, but overall it's a step forward.

      Just hammering browser developers makes me say: "Well, yeah, go and do a better job than them."

    37. Re:The one real data model: XML by tepples · · Score: 1

      there really is no benefit to HTML markup other than the ability to write sloppy markup

      And compatibility with existing versions of Internet Explorer, which don't necessarily support XHTML.

  29. What could possibly go wrong? by vtcodger · · Score: 4, Insightful

    ***HTML5 will allow applications to tap local file storage***

    Once or twice a decade I encounter a "They can't possibly be serious" moment. This is one of those occasions.

    --
    You can't see ANYTHING from a car, You've got to get out of the goddamned contraption and walk...Edward Abbey
    1. Re:What could possibly go wrong? by Athanasius · · Score: 1

      If it's to a well-defined area I see no problem, especially if you can set a quota on it to head off a DoS by full-disk. So long as you know not to implicitly trust anything in that location, given its sole purpose is for this storage, that is.

      However I am puzzled by:

      On the downside, these databases are buried deeply in the system folder, so making backups may not be the simplest step.

      Why can't it be in a per-user folder inside their profile ? I thought we were finally getting away from the Windows pain of apps keeping settings, logs, saved files, screenshots etc. inside the application installation itself. Is this just one or two browsers having a stupid implementation at this stage ?

    2. Re:What could possibly go wrong? by colinrichardday · · Score: 1

      Indeed, where is the system folder on Ubuntu 9.10?

    3. Re:What could possibly go wrong? by FlyingGuy · · Score: 1

      Ya think?!

      --
      Hey KID! Yeah you, get the fuck off my lawn!
    4. Re:What could possibly go wrong? by Jesus_666 · · Score: 1

      I think the author never noticed that *nix and Windows NT happened and doesn't differentiate between "the system folder" and "the application data folder". In my case, "deeply in the system folder" will mean "deeply in ~/Library/Application Support/Firefox".

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
    5. Re:What could possibly go wrong? by balbus000 · · Score: 1

      Why can't it be in a per-user folder inside their profile ?

      It is, at least for Chrome on Windows XP:
      C:\Documents and Settings\<username>\Local Settings\Application Data\Google\Chrome\User Data\Default\Local Storage
      And file size is limited to 5MB per domain.

    6. Re:What could possibly go wrong? by Anonymous Coward · · Score: 0

      I thought I had remembered an Opera alpha release with support for granting a web application full control over a local directory, but I cannot find any reference to writing local files being supported in HTML5. On the other hand, there is a much more sane API for handling reading local files, of course, only once the user has given those files to the web page via a file open dialog or drag and drop.

    7. Re:What could possibly go wrong? by theCoder · · Score: 2, Funny

      /sys/ of course!

      --
      "Save the whales, feed the hungry, free the mallocs" -- author unknown
    8. Re:What could possibly go wrong? by Nadaka · · Score: 1

      It would not be so bad if they handled local storage a lot like cookies except that they don't get sent back to the server with every request.

    9. Re:What could possibly go wrong? by Myopic · · Score: 1

      Don't worry, you can always use a browser which isn't compatible with HTML5. Stick with an old version of Firefox, or IE, or lynx or whatever you like, and stick to the parts of the web which work with those old browsers. You'll be fine.

      But as the web (web browsers, specifically) evolve/s to take the place of traditional operating systems, obviously they will have to provide filesystem services to their applications. There will, of course, be problems; but they'll be worth it.

    10. Re:What could possibly go wrong? by Anonymous Coward · · Score: 0

      ***HTML5 will allow applications to tap local file storage***

      Once or twice a decade I encounter a "They can't possibly be serious" moment. This is one of those occasions.

      Nothing in HTML5 allows you to actually browse the filesystem from a web app, or anything even vaguely similar to that. localStorage basically works like cookies, except it has a higher capacity and isn't sent to the server on every request (so only accessible from JavaScript). The privacy/security implications are basically the same as cookies – browsers are encouraged to use the same exact button to clear cookies and localStorage, and they do.

      Read the spec if you want to know all the details on how it works. Third-party summaries are usually written by idiots, as you may have discovered by now.

    11. Re:What could possibly go wrong? by mattholimeau · · Score: 1
      Right - making backups may not be the simplest step - if the web developer doesn't have a clue what they're doing when using a local file-system for a web application. The article alludes to the fact that a smart application would only use the filesystem as a local replica - it doesn't assume that it would be stupid to do anything else with it (as, imho, it should, and not even mention this backup issue). But the article does this in a number of places - point out flaws that are only "flaws" when considering a really bad implementation. Allowing for a bad implementation is not a flaw - it is essentially a requirement: if an api gives you the power you need to get something done, then they will always also be giving you the power to shoot yourself in the foot. This is NOT a design flaw. If you need to make a backup of a local filesystem of a web page, the somebody is doing something terribly wrong, because any "fresh" client should be able to quickly and easily recreate the local filesystem (for example, upon logging into the web application with my same username and password.)

      Is this just one or two browsers having a stupid implementation at this stage ?

      No - it the author of the article assuming bad implementations will be the norm, without indicating to the user that this would merely be a bad web page implementation. Lazy ass writer, I say.

    12. Re:What could possibly go wrong? by shutdown+-p+now · · Score: 1

      We've had local file storage for sandboxed apps for ages - Java applets, .NET ClickOnce apps and Silverlight, and I believe Flash has something similar as well? The way you do it is by giving each app its own separate "root" outside of which it cannot access anything, and enforcing size quotas to prevent DoS attacks. The result is not significantly different from cookies in terms of security, but enables a lot more things (e.g. you wouldn't want to store a megabyte of data in a cookie).

      It's not hard to do, and the existing implementations are pretty mature and can easily be re-used (or, at the very least, experience gained from creating them can).

  30. input elements will have a big impact by OlRickDawson · · Score: 1

    All this talk about canvas and video tags is interesting, but not what I'm looking for. I just want those date, number and patern input elements. Once those are in place and widely used, my business javascript will be greatly simplified. Yes, I know that I can use third party tools, but that is still running javascript. Having those elements native to the browser will speed up perfomance and cut down on the amount of javascript tremendously.

    --
    Ol' Rick Dawson had a farm EIEIO
  31. It doesn't matter.... by Anonymous Coward · · Score: 0

    ....until IE6 finally dies.

  32. Complexity in the code by improfane · · Score: 1

    That sounds accurate about the actual parsing complexity but I didn't necessarily mean complexity at run time.

    I meant that a XHTML parser would imaginably much simpler than a HTML5 parser.

    • A HTML5 parser has many more potential code routes: with quotes, without quotes, overlapping, non-overlapping, I believe it needs a much more complex state machine to provide the flexibility. there is more conditionals in processing a document and generating the tree.
    • A XHTML document can be validated by DTDs or XSchema. Validating HTML5 requires a program as complicated as a browser (to handle the complex cases)
    • XHTML generates a well understood tree structure. A browser's implementers have to make a decision themselves. What happens if two browsers make a different decision?
    • Assuming a HTML file is well-formed,
    • HTML browsers have to 'repair' the document because the developer couldn't be bothered to make sure his markup is valid. As a result, browsers respond by beginning to accept the invalid data and it becomes status quo. The 'HTML' standard is NOT absolutely defined!
    • A XHTML engine should be more maintainable than a HTML one. Simply because the XHTML one can be verified but the HTML is more difficult to do so. You cannot remove 'hacks' from a HTML engine because they become the 'interface'. People WILL come to rely on them.

    If markup was a programming language, it's like comparing HTML5 as the dynamically typed language that accepts whatever you throw at it and XHTML5 is a rigid statically typed language.

    IMHO, it's better to have clever data structures rather than clever programs. XHTML is a smart format requires a dumb program whereas HTML is a dumb format and requires a smart program.

    The web developers should understand the markup they use to develop. It's their responsibility as a developer.

    --
    Slashdot needs Geekcode | Can anyone recommend any good SCIFI? My tastes: Foundation, Startide Rising, CITY, Ringworld,
  33. one language by FunkyELF · · Score: 1

    First of all, its not one language when you count all the PHP, Java / JSP, ASP, Python, Perl, Tcl etc that runs on the server.

    Second of all, that one language should be Python FTW.

    1. Re:one language by shutdown+-p+now · · Score: 1

      The "one language" should really be some form of high-level binary bytecode (something along the lines of that used by Java in terms of abstraction level and safety). It would be more compact than JS, much easier to implement, potentially faster (due to static typing), and easy to JIT. And, of course, it would also enable multiple languages.

      Alas, in real world, "already out there" beats perfect more often than not, so we're stuck with JS for now.

  34. He doesn't mention fonts by Animats · · Score: 4, Informative

    The current versions of all the major browsers can now dynamically download fonts. We can finally stop putting display text in images. Opera, Safari, Chrome, Firefox (3.6 or greater) and IE are all on board with this. By IE 9, they'll even be using the same font format, Web Open Font Format. (Except for the iPad, which, for some weird reason, currently requires fonts in SVG format. But even the iPad understands "@font-face")

    Few sites are using this capability yet. We are, as a demo. Try our steampunk search engine with authentic Victorian fonts.

    1. Re:He doesn't mention fonts by bunnyman · · Score: 2, Funny

      The text at that site is unreadable. Good job.

  35. Nitpicks... by SanityInAnarchy · · Score: 2, Interesting

    Seems to be a minor thing simply wrong in every single point...

    Point #1 is flat wrong on this count:

    If drawing images is your goal, then the Canvas object may be powerful enough. But if you want to build specialized 3-D worlds like the ones found in the more sophisticated Flash and Shockwave games, you may be pining for the old days...

    Erm... Maybe WebGL isn't officially part of HTML5, but it's there, and Chrome is implementing it. And personally, I'd much rather force people to download a decent open source browser than a decent proprietary plug-in -- there's alway Chrome Frame if you really need it.

    Point #2:

    some developers deliberately disabled the Flash plug-in to avoid the headaches and overhead of rendering heavy Flash content. That won't be an option in the future.

    Bullshit. It'd take less than ten minutes to put this jQuery in a Chrome extension: $('canvas').remove();

    Point #3:

    Game programmers might store descriptions and artwork locally, saving the time of downloading the information again and again.

    That's what HTTP caches are for, and they work for XHR, too!

    Please, no one do this. Ever. HTML5 storage is for storing data. When you use it for caches, you add that much more stuff we might inadvertently back up, that much more cache we can't automatically purge (to claim disk space) or expire (from disuse), and you're doing more work to duplicate functionality HTTP already has.

    Point #4:

    The so-called microformats in HTML5

    I'm confused... microformats don't require HTML5, do they?

    Point #5 is fine, though it doesn't mention potential privacy concerns.

    Point #6:

    Google's new format will see some usage, for example in YouTube, but will never reach anywhere close to the ubiquity of H.264.

    Erm, do you know something we don't? Last I checked, YouTube is still H.264 -- in a Flash container, no less.

    Point #7, I don't care about.

    Point #8:

    This claim of better security, though, is a bit of a wild guess. The devious minds may use their malice aforethought to take advantage of the nice integration, perhaps drawing PayPal logos with the Canvas object...

    So phishing will be easier? Big deal. Hasn't Flash been the biggest vector for actual client-side pwnage for awhile?

    Point #9:

    Now, if only HTML5 came with the nice collection of tools that Adobe makes for Flash.

    Adobe has said they plan to target HTML5.

    --
    Don't thank God, thank a doctor!
    1. Re:Nitpicks... by DragonWriter · · Score: 1

      Please, no one do this. Ever. HTML5 storage is for storing data. When you use it for caches

      Uh, what is stored in a cache is also data.

      The only difference between what it stores and what an HTTP cache stores is that an HTTP cache can only store resources that would be accessed through a URL. Of course, what resources could be accessed through a URL is purely a function of how the application is designed, so that's not really a fundamental difference.

    2. Re:Nitpicks... by SanityInAnarchy · · Score: 1

      Uh, what is stored in a cache is also data.

      Would you feel better if I said "User data, corresponding to savegames, preferences, and other stuff that needs to be backed up"?

      The only difference between what it stores and what an HTTP cache stores is that an HTTP cache can only store resources that would be accessed through a URL. Of course, what resources could be accessed through a URL is purely a function of how the application is designed, so that's not really a fundamental difference.

      And, with a properly-designed REST service, that should be everything.

      There are legitimate uses for local storage -- browser extensions, user scripts, user preferences, machine-specific user preferences, etc. Think of them as cookies on steroids -- that is their purpose. And I don't like to clean out my cookies, so I certainly don't like to clean out my local storage, but I do like my caches to expire.

      Let me put it this way: Many apps are now storing caches in ~/.cache, including Chrome. Other apps are doing things to deliberately identify a cache folder from within the cache itself, like VLC's CACHEDIR.TAG.

      That means if I'm getting low on disk space, I can just blow away the caches. If I want to ensure cache gets stored on a separate partition or device, maybe something tuned for high write throughput and low data integrity, I can do that. If I want to exclude cache from backup, saving tons of storage (since it's way more variable than any data I care about), I can do that. One project I have planned for "someday" is to make the filesystem itself provide some sort of cache API, so that I can have caches just use my free space in much the same way as Linux's disk caches use my free RAM.

      In the case of HTTP caches, I can take it a step further -- I can put a caching proxy in front of everything, or at least ensure that the same resource is cached for all applications so long as it's available at the same URL. It also makes it trivial to turn it into an offline app -- just add a manifest, no need to have your app run some lengthy "installation" process, and as a bonus, I can uncache your app when I don't need it offline (yet retain any data that I should actually care about).

      Asshats who are going to cache things to HTML5's local storage (not many yet, I hope) are much like asshats who cache things in RAM just because Windows' memory management sucks. It means I now have a bloated bunch of space that the browser thinks is needed. If it starts taking too much space, I have no way, as a user, to blow it away -- you have to add that to your app, which is duplicating functionality that's already in my browser (the "empty cache" button). As a bonus, if your app has a decent REST API with the appropriate headers set to allow caching, I now have two cached copies -- so you're now wasting twice the disk space until the HTTP cache expires.

      Which is, of course, exactly like what happens when you cache things in RAM instead of using memory maps, etc -- ok, yes, it makes sense if it's a text format on disk, so you cache the parsed version in RAM. But if you're caching it in RAM just because you assume you'd otherwise be reading it from disk, you're likely decreasing performance. Trust the filesystem cache -- even Windows is getting better at this. Then, when I'm actually using close to all my RAM, it'll be able to figure out that it's cache and just remove it to make way for something I need -- which is way faster than having to swap out chunks of your application to disk.

      Imagine the worst-case scenario here, where I don't have enough RAM to reliably cache the file you're reading -- chances are, as you read it, it'll be swapping something else out to disk. If it's really bad, it might be swapping out the very bits of RAM you're reading into, so you're now copying from a file into swap, so you can then read out of very-fragmented swap instead of the file. Bravo.

      --
      Don't thank God, thank a doctor!
  36. What a load of... by Anonymous Coward · · Score: 0

    This kind of article make me sick. It's propaganda for something that's not even remotely a revolution but is presented as one. Yes html5 good. Is it going to change much? No, not really. Also, enjoy your flash bashing. If there's anything you have to thank for pushing everyone forward, it's flash. Remember it.

  37. How HTML5 Will Change the Web by Anonymous Coward · · Score: 0

    That's easy... fewer and fewer web sites will work correctly as HTML5 is "embraced", and users will be forced to decide between downloading yet another borked PITA bloated update that won't actually work until they give up and just buy another computer or shutting their computer off and going outside, maybe walk to the park or down the street to the local pub, watch some ball, have a beer.

  38. Re:summary wrong on two counts about "one language by shutdown+-p+now · · Score: 1

    But using "outside" language bindings results in a hybrid application rather than a pure Web app, and then you depend on the portability of that particular binding (i.e. does XulRunner run on iPhone? etc).

    If you want portability, then "one language" is a given, and that is JS. Now, there is still a possibility to take a different language and compile that to JS - as GWT does for Java, or WebSharper does for F#.

  39. HTML5 lay sucks by tvlinux · · Score: 1
    The major problem with HTML is that the layout sucks. the two methods are tables and

    , both are very bad. The box method of lay out is far superior! Most of the cool features are not in the HTML5 spec but other new specs "server push, web sockets, ...." but when forced to use the bad layout you still have crap.

  40. there are 2 forms of html5 by bussdriver · · Score: 1

    HTML 5 comes in 2 formats:
    XML and that messy html 4

    The MIME type from the webserver indicates which one it is in the http protocol.

  41. No. Draconian error handling prevents errors by presidenteloco · · Score: 1

    If all browsers switched (after a year of widely publicised warning time, say) to displaying an error message rather than render broken pages, then all of the pages whose owners (or readers) care about them would be fixed within another year after the great "web quake" (the transition to valid pages only.)

    That would actually be a really smart thing to do, in that it would support a more sane evolution of the technology going forward.

    But it wouldn't be a likely thing to be done, given human history, in which "barely good enough, but basically sucks" rules the roost. (e.g. dominant position of Windows etc.)

    --

    Where are we going and why are we in a handbasket?
  42. Faster by Anonymous Coward · · Score: 0

    Would it make porn websites load faster?

  43. difference between a good spec and a bad spec? by circletimessquare · · Score: 1

    the difference is: which one is actually implemented on a large scale

    the browser vendors are using html5, therefore, the case is closed and the issue is settled. nothing else matters

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
  44. Terms of service that prohibit scraping by tepples · · Score: 1

    Page scraping becomes more of a nightmare on HTML markup sites

    The site's terms of service likely prohibit scraping anyway because scrapers discard adverts. Instead, you're supposed to get the Atom feed, formatted in (yup) XML.

    You can no longer simply just use the XML toolkit that comes with just about every language as standard nowadays and will need an HTML5 parser

    Every language has such a parser available or should very soon. For example, see html5lib for Python and html5lib for PHP.

    working with XML is easy, you can just XSLT transform the output into something that fits your system, then XSLT transform it back to their system, this means interfacing with legacy or proprietary stuff is easy.

    Or you can use the HTML5 parser to make a DOM tree and XSLT transform that.