Slashdot Mirror


XHTML 2 Cancelled

Jake Lazaroff writes "According to the W3 News Archive, the charter for the XHTML2 Working Group — set to expire on December 31st, 2009 — will not be renewed. What does this mean? XHTML2 will never be a W3C recommendation, so get on the HTML 5 bandwagon now. According to the XHTML FAQ, however, the W3C does 'plan for the XML serialization of HTML to remain compatible with XML.' Looks like with HTML 5, we'll get the best of both worlds."

61 of 222 comments (clear)

  1. Good by orta · · Score: 5, Informative

    I know a lot of web developers who dont know the difference between XHTML and HTML, and I hear XHTML as a buzzword all the time. The less confusion the better in my opinion. The HMTL5 spec is quite readable,but if you've not taken a stab at working with HTML5 (it runs all browsers) yet this article should be pretty useful: http://www.phpguru.org/static/html5

    --
    my band is more brutal techno punk than yours
    1. Re:Good by schon · · Score: 2, Funny

      I know a lot of web developers who dont know the difference between XHTML and HTML, and I hear XHTML as a buzzword all the time.

      Duh. Everyone knows that the "X" is for Xtreme! It's Xtreme HTML, right?

    2. Re:Good by Hurricane78 · · Score: 5, Insightful

      The main key is, that, while HTML5 is based on the superior SGML (because of more freedom), XHTML had started to enforce strictness and cleanness. This meant the browser did not have to support a ton of typos, just because the editor was a freakin' lazy ass. Imagine a compiler that would eat any typo. Missing brackets, braces, semicolons, object-function separators, completely meaningless semantic messes. HTML4 browsers eat it all.

      It is horrible, and actively supports the dumbing down of people. (Those who want to write websites.)
      Face it: If they have to, they will learn it. Nobody is too stupid for that. Some just repeat so often that they are stupid, that they actually become stupid. But this can be reversed in exactly the same way. (Ask any psychotherapist about self-fulfilling prophecies.)

      Another great feature of XHTML, was its modularity and cross-language features.
      You could integrate XHTML, SVG, MathML, etc, into one document. Imagine a P tag inside a SVG circe, containing a math formula, and you begin to understand the sheer power of that concept.

      Now if they implement HTML5 right, and we get the same cleanness that XHTML 1.1 had (Strict only. No transitional shit.), and they add cross-language abilities too (trough SGML), then I'm all for it!
      But if not, this could be a huge step backwards, into the web development mess of IE6 times!

      --
      Any sufficiently advanced intelligence is indistinguishable from stupidity.
    3. Re:Good by Reaperducer · · Score: 4, Interesting

      Imagine a compiler that would eat any typo. Missing brackets, braces, semicolons, object-function separators, completely meaningless semantic messes. HTML4 browsers eat it all.

      So, what you're saying is that the computer works for people instead of the other way around?

      --
      -- I'm old enough to have lived through six different meanings of the word "hacker."
    4. Re:Good by css-hack · · Score: 4, Insightful

      But by working that way, the computer encourages people to create unreadable messes, that other developers can't easily understand.

      Simpler parsing rules are more a boon for the people than for the computers. Think about it.

    5. Re:Good by moderatorrater · · Score: 3, Insightful

      It is horrible, and actively supports the dumbing down of people.

      This is where I take issue with your argument. I completely agree that having the page break catastrophically when there was an error would be easier and better for people who design websites professionally (like me), especially in this day and age.

      However, I don't believe that it supports the dumbing down of people, I believe it support less knowledgeable users. To use the compiler as an example, when my sister-in-law learned programming, she learned Java; to get to the point where she could do basic things like "hello world," she had to instantiate objects and call functions. My wife learned with php, and she had to type one line, a command and a string. The barrier for entry was much lower and she was rewarded much faster, thereby gaining a greater desire to learn more.
      Br. At the time, browsers taking incorrect HTML was the same philosophy: you lower the barrier of entry. When someone writes a lot of web pages, they tend to become more knowledgeable, not less. There are exceptions that make everyone serious about the craft cringe and want to beat their heads against a brick wall, but for the most part skills are progressing. I don't know whether the web landscape would be better or worse right now if they'd required strict HTML for every web site, but I can tell you that a lot of people who were enthusiastic supporters and creators of web pages in the early days wouldn't have gone down that route had the barrier for entry been higher.

    6. Re:Good by omuls+are+tasty · · Score: 2, Insightful

      Imagine a compiler that would eat any typo. Missing brackets, braces, semicolons, object-function separators, completely meaningless semantic messes.

      Must... resist... must... resist...PHP! Bloody PHP! Bloody E_NOTICE!

      Oh dear, there goes my karma...

    7. Re:Good by Ant+P. · · Score: 2, Informative

      HTML 5 is based on the DOM. The HTML4-compatible syntax is defined from scratch, it isn't based on SGML because no web browser actually parses SGML correctly. Most of them don't do HTML4.01 fully for that matter (IE doesn't do simple things like <q>, Moz doesn't support all the weird table-column align stuff...).

    8. Re:Good by ultranova · · Score: 4, Insightful

      So, what you're saying is that the computer works for people instead of the other way around?

      No, what it means is that the computer tries to guess what some dyslexic jackass who insists on writing code despite being functionally illiterate and proud of it meant. Since we have no sentient computers yet, and since the markup diarrhea these people produce would be challenging even for a human to decrypt, the task is hopeless, and the websites that result will break in fascinating ways with each new browser version, or whenever whoever visits them has a different screen resolution than the "designer", or the stars are not just right. And whenever that happens, the website gets replaced by a new, equally broken version, and the designer gets paid for delivering said abomination.

      And of course whenever the browser fails to extract meaning from the chaos that would horrify even Cthulhu, it's the user who gets blamed: he didn't use the right version of the right browser, running at the right resolution, with the right versions of the right plugins installed. That, or he has Linux installed on another and unrelated machine.

      --

      Forget magic. Any technology distinguishable from divine power is insufficiently advanced.

    9. Re:Good by Tacvek · · Score: 2, Informative

      HTML5 comes in two forms.

      It comes in an SGML-inspired format, that is not strictly SGML but matches real word HTML almost exactly. The big difference from HTML4 besides the new tags is that it does not use a DTD, nor does it support the shortag features of SGML, with the exception of the short attribute feature. Thus "<title/</<body/".

      (Yes, that has three open brackets, zero close brackets, and 3 slashes) is not valid HTML5, despite being valid HTML4. (At least once you add the DTD).

      There is also an XHTML form, which may informally be called XHTML5. Except for the new tags, this is pretty much identical to XHTML 1. In some ways this is the prefered form of HTML5, being that the other form does not support namespaces.

      --
      Stylish sheet to fix many problems in Slashdot's D3: https://gist.github.com/801524
    10. Re:Good by Stan+Vassilev · · Score: 2, Insightful

      Must... resist... must... resist...PHP! Bloody PHP! Bloody E_NOTICE!
      Oh dear, there goes my karma...

      In attempt to preserve your "karma", I give you asolution:

      function errorHandler($code, $message, $filename, $line) { die($code .': '.$message.' at '.$filename.' ('.$line.').'); }

      set_error_handler('errorHandler');


      You know, less talk, more action ;).

      P.S.: You could also throw an exception, which is the most convenient option, as you can handle the errors in some cases.

    11. Re:Good by Blakey+Rat · · Score: 2, Interesting

      The main key is, that, while HTML5 is based on the superior SGML (because of more freedom), XHTML had started to enforce strictness and cleanness. This meant the browser did not have to support a ton of typos, just because the editor was a freakin' lazy ass. Imagine a compiler that would eat any typo. Missing brackets, braces, semicolons, object-function separators, completely meaningless semantic messes. HTML4 browsers eat it all.

      Totally wrong. One of the most important rules in software is: "be liberal in what you accept, and strict in what you output." XHTML does that first part COMPLETELY WRONG.

      Here's the thing: while you're going on about dumbing-down, you're completely ignoring the basic power of the web-- the fact that everybody can (and should) participate in it.

      You long for a world where, if I put my STRONG tag and my EM tag in the wrong order, a completely trivial error, the browser should show absolutely nothing. Even though it's obvious to everybody what I *meant*, since a computer thinks like a computer and rejects it like a retard.

      You know what? I already have enough computer programs that act like retards. I want my software to be smart, so that humans don't have to worry about that trivial shit you seem to relish so much. In the ideal world, software would *do what I mean*, not *do what I say*. Your world sucks.

      It doesn't help, BTW, that "dumbing down" is always one of those grouchy "get off my lawn" arguments people make when they don't really have any actual arguments.

      And how do we move into your world? Well, first of all we completely and utterly delude ourselves into thinking that HTML4 will disappear overnights and XHTML can make browser simpler to implement. Thus deluded, we then create a new standard which offers absolutely *nothing* new over the old standard, then tell all the browser makers to add that into the already-too-long list of standards they need to support. Oh, and just to cement W3C's isolation from the *actual* work of creating and maintaining webpages, let's make this new standard incompatible with some of the most popular web analytics tags out there.

      XHTML was retardation from day 1.

      Now the flamebait part: of course what you're probably really after is some kind of elitist high-priesthood-of-technology bullshit for your own selfish reasons.

    12. Re:Good by Waccoon · · Score: 2, Insightful

      I blame development tools.

      Every web browser should have a development mode where it will tell you about simple syntax problems with HTML, CSS, JavaScript, and so on. This should have been standard since day one! I mean, really simple things that won't bloat the browser. Complex things like validation can be handled with extensions, like the Web Developer and HTML Validator extensions for Firefox.

      Most people I know who do web development aren't aware of a simple typo here and there, and it's hard to validate whole pages when people are making web sites using a mess of templates that requires logins and sessions. You can't use external tools for everything while debugging, and you can't do anything that would risk the end user getting a blank screen or a ton of error messages (as the W3C is trying to do). IMO, web browsers have all done a horrible job of this stuff. Firefox was the first browser I know to even allow debugging of any sort, and even then, everything has to be done with extensions, even though internally, the browser needs to validate everything, anyway.

      Nobody can take a browser seriously as a platform (or even as -- *ugh* -- an OS) unless it offers even the most essential debugging tools. Web browsers have done a horrible job of this in the past, and even today the simplest of testing requires a bunch of 3rd party extensions that are usually out of date when new browsers are released. The severe minimalist design of Chrome drives me nuts, too, because it really goes out of its way to hide even the simplest of development features, like View Source, under a complex tree of drop-down menus. WTF? Opera takes development more seriously than other browsers, particularly with image support and limited screen space, but it still lacks many essential validation features.

      People can blame IE all they want for standards-compliance issues, but all browsers are to blame for poor web development practices.

    13. Re:Good by diamondmagic · · Score: 2, Insightful

      Except it does add new features, XML namespaces to start. Embedded RDF, SVG, MathML, and endless other possibilities. You can embed XUL in XHTML in Mozilla, for instance, or vice versa. Plain old HTML has none of these. Plus, stricter rendering that doesn't confuse CSS parsers makes debugging stylesheets much easier.

    14. Re:Good by Draek · · Score: 2, Insightful

      In the ideal world, software would *do what I mean*, not *do what I say*.

      No it shouldn't, and the reason is quite simple. And no, it's not 'elitism' or any of those red herrings you're throwing.

      Lack of formalized languages has done enough harm elsewhere, you can take a relatively complex phrase in English and two people will come up with two different meanings for it. Perhaps they'll only differ sightly, perhaps not, but chances are they won't be perfectly interchangeable. Extrapolate that to software, and you have pretty much the same situation as today only worse: IE interprets your mistakes one way, Firefox another, Opera yet another one and suddenly the stuff that was supposed to be "standardized", ain't.

      Take your example of the strong and em tags, but lets extend it a bit further and say you've defined (for some unknown reason) to define in CSS that 'strong' displays in Arial and 'em' in Times. You write <strong><em>hi</strong></em>, simple enough right? yeah, except that which font should it use? assume the standard specifies that inner tags overwrite the style of outer ones. IE decides that, since you wrote <strong> first, thats the outer one and so uses Times. But Firefox sees that <strong> was *closed* first and so is the inner one, therefore it should go with Arial.

      Both are valid interpretations for such a simple mistake, yet both produce drastically different results. Make a not-so-trivial example, and the number of possible interpretations increases exponentially.

      Computers are designed to be deterministic and therefore so must be the languages that it must speak. And having "intelligent" computers that "guess" what you meant instead of following a predetermined, standardized pattern and complaining loudly if they can't (another very important rule of programming, btw) is not only incredibly more difficult to write, but also to *use*. HTML5 is a step in the right direction since it tries to standardize the ways browsers must deal with faulty input, but had the web be stricter from day one this problem wouldn't have arisen in the first place.

      --
      No problem is insoluble in all conceivable circumstances.
  2. XHTML merged by werfu · · Score: 3, Interesting

    They should have never created XHTML. They should have XMLized HTML in the first place. But, XHTML has corrected many wrong thing that HTML developpers used to do. Now, HTML5 should simply pick up the best of both world while still being XML compliant.

    1. Re:XHTML merged by RaceProUK · · Score: 5, Informative

      They should have XMLized HTML in the first place.

      They did. It's called XHTML.

      Unless you mean XML-ise HTML 3.2 or earlier, but I believe XML didn't exist back then.

      --
      No colour or religion ever stopped the bullet from a gun
    2. Re:XHTML merged by sakdoctor · · Score: 2, Insightful

      XHTML would have been great standard.

      When fed invalid XHTML, the browser chokes, which would have gone a long way to eliminating much of the crap code, and crap "web developers" out there.
      I don't see why it's the browsers business to be THAT lenient, and second guess the developer all the time.

    3. Re:XHTML merged by IntlHarvester · · Score: 2, Interesting

      Agreed. XHTML was rather pointless. It didn't add any particularlly interesting features, made pages more difficult to author, and its claim that it made life easier for browser authors was belied by poor support and slow rendering. Making things more "XMLish" with closed tags and quoted attributes was a good idea, but in reality writing XML-conformant CSS/Javascript XML was a pain in the butt and usually not done.

      I suppose XHTML might have been useful as part of a document management/transformation system, but it didn't seem to offer much to most web developers.

      --
      Business. Numbers. Money. People. Computer World.
    4. Re:XHTML merged by Anonymous Coward · · Score: 2, Informative

      Good compilers still choke on syntax error, you idiot. Hell, scripting language will crash immediately if you made a syntax error too.

      XHTML isn't worse than programming language compilers and interpreters. It won't detect wrong semantics if you didn't use what you needed but it chokes on syntax error, malformed tag, which is a GOOD thing.

    5. Re:XHTML merged by xorsyst · · Score: 2, Informative

      We made great use of it once in an internal web-based system. There was a command-line client that basically just did a GET/POST and then parsed the xhtml with an xml parser to display the output, which made implementing that a doddle. Coding the website to be xhtml compliant added very little overhead, much less than defining a whole separate soap service or similar.

      --
      Get free bitcoins: http://freebitco.in
    6. Re:XHTML merged by DoktorSeven · · Score: 2, Interesting

      Exactly. XHTML is not that hard to get right, and it makes a web page "clean" in that there doesn't have to be any guessing going on in the browser to figure out what a page designer wants.

      The best thing in the world would have been browsers adapting a rigid HTML standard to begin with and browsers simply saying "Sorry, this page has invalid HTML" on bad pages.

      I can dream, can't I?

      --
      This is a sig. Deal with it.
    7. Re:XHTML merged by PenguSven · · Score: 3, Insightful

      Agreed. XHTML was rather pointless. It didn't add any particularlly interesting features, made pages more difficult to author, and its claim that it made life easier for browser authors was belied by poor support and slow rendering. Making things more "XMLish" with closed tags and quoted attributes was a good idea, but in reality writing XML-conformant CSS/Javascript XML was a pain in the butt and usually not done. I suppose XHTML might have been useful as part of a document management/transformation system, but it didn't seem to offer much to most web developers.

      The ability to parse a web document using native XML methods is pointless? As for CSS/JS in xhtml. How hard is embedding the content as CDATA? Why are you even embedding CSS/JS in the XHTML? If web developers don't need the XML parsing functionality, they can keep using HTML 4.01. As for HTML5 - technically HTML5 consists of HTML5 (using the HTML syntax rules) and XHTML5 (using the XML syntax rules). I think it's great the W3C have "one" standard to work on, but if you think HTML5 is ready to go any time soon, don't kid yourself. Stick with either HTML4 or XHTML for now. It will take some time before it's safe to deploy valid (X)HTML5 documents for general consumption.

      --
      What is...?
    8. Re:XHTML merged by Phroggy · · Score: 4, Insightful

      But, XHTML has corrected many wrong thing that HTML developpers used to do.

      No it hasn't! Writing valid code (be it HTML 4.01, XHTML, or HTML 5) and checking it with a validator is what has corrected many wrong things that HTML developers used to do. Valid HTML 4.01 is still just as legitimate as XHTML ever was.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    9. Re:XHTML merged by sakdoctor · · Score: 2, Informative

      Yes, we can dream.
      How lazy do you have to be not to close your tags, and nest them properly? It's a low barrier, but given people's infinite laziness, they will write their code until it is just not-too-crappy to render in IE. Then call it a day.

      A strict standard would also give MS less wiggle room to subvert the standard in their IE implementation of it.

    10. Re:XHTML merged by Tanktalus · · Score: 2, Insightful

      Getting a web page clean is a hard problem ... when you accept user input in something approaching HTML format, like /. does. Or we can all be forever subjected to incomplete wiki-style markup that can only do about half of what the user wants. I find myself constantly going back to html in mediawiki to get the formating I want - whether mediawiki supports it or not, I don't know, because at some point the wiki markup gets to be just as convoluted and hard-to-read as html, so I use HTML. Other times, I know mediawiki can't do it, so we need to enter in HTML. And mediawiki is probably one of the better user-content web services out there (from a completeness perspective).

      I can just see it now: php or mod_perl or CGI apps linking against WebKit or KHTML or xulrunner or whatever just to properly parse out the user input and clean it up, just so that another browser doesn't choke.

      I think we're stuck with broken markup for a long while.

      Now, if there were a way to "mark" a section of HTML as being "user-content" such that the parsing could be relaxed for small sections, we might get somewhere further. Then again, many lazy developers will mark their entire documents as user-content, and not fix their code.

    11. Re:XHTML merged by Phroggy · · Score: 5, Insightful

      XHTML would have been great standard.

      When fed invalid XHTML, the browser chokes, which would have gone a long way to eliminating much of the crap code, and crap "web developers" out there.
      I don't see why it's the browsers business to be THAT lenient, and second guess the developer all the time.

      The problem is, a lot of web pages today are not a single coherent document, they're a bunch of little code fragments concatenated together (template, content, advertising, etc.). When coders get sloppy, this can result in invalid markup. When browsers choke, the content producer may have no idea how to fix the problem - it may not even be their problem.

      What HTML5 tries to do is clearly define exactly how broken markup is supposed to be handled, so all browsers can try to "second guess the developer" in exactly the same way.

      Kudos to Firefox for reigniting the browser war. In Browser War 2.0, all the major players are striving toward standards compliance, trying to bring their behavior in line with a single unified goal instead of adding their own proprietary features to HTML itself. Five years from now, when IE6 and IE7 are as distant a memory as IE4 and IE5 are now, web development is going to be a lot easier.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    12. Re:XHTML merged by maxume · · Score: 3, Informative

      A key feature of html5 is that is specifies the algorithms to use when normalizing poorly formed markup. It doesn't eliminate ambiguous cases, but it gets rid of many of them, meaning that the presentation and DOM should almost always be the same, regardless of the browser.

      --
      Nerd rage is the funniest rage.
    13. Re:XHTML merged by thetoadwarrior · · Score: 3, Insightful

      Anyone too lazy to code nice neat xhtml shouldn't be allowed to create web pages.

    14. Re:XHTML merged by Qzukk · · Score: 2, Insightful

      Good compilers still choke on syntax error, you idiot.

      And if you downloaded a program and it choked when you tried to use it, you'd download a different one, now wouldn't you?

      Your plan only works if all of the browser vendors promise to obey it all at the same time. The first vendor to break the promise wins.

      --
      If I have been able to see further than others, it is because I bought a pair of binoculars.
    15. Re:XHTML merged by pizzach · · Score: 3, Informative

      Getting a web page clean is a hard problem ... when you accept user input in something approaching HTML format, like /. does

      No it is not. Have php run the user input through tidy. Even if it doesn't display as the user wanted in their browser, at least it displays consistently between browsers which is more important imho. Just go. Install it now in php. Seriously, if you are not checking html code coming in from users, something is not right. They could destroy your page with some of those unclosed tags.

      --
      Once you start despising the jerks, you become one.
    16. Re:XHTML merged by TheRaven64 · · Score: 4, Insightful

      Getting a web page clean is a hard problem ... when you accept user input in something approaching HTML format, like /. does.

      No it isn't. You should not ever, ever, be inserting user-provided HTML directly in to a document. If you do, then well done, you've just created a cross-site scripting vulnerability. And you've let pranksters submit &lt!-- and hide half of your page.

      The correct way of handling user-provided HTML is to parse it with an HTML parser, construct a DOM tree, navigate this stripping out any tags that aren't on your whitelisted set, and then use the result. Most of the time, you want to run it through a very relaxed HTML parser because hand-typed HTML in a web form is likely to be full of errors. When you dump the DOM tree as HTML, it can be XHTML 1, HTML 3.2, or any other dialect you want.

      --
      I am TheRaven on Soylent News
    17. Re:XHTML merged by IntlHarvester · · Score: 2, Insightful

      > The ability to parse a web document using native XML methods is pointless?

      In the general sense, yes. Web documents are nearly always served to web browsers, and every single web browser does a faster & better job of parsing HTML over XHTML.

      As I mentioned, there certainly are cases when XML can be useful, but the usual situation of serving content to end users isn't one of them.

      --
      Business. Numbers. Money. People. Computer World.
    18. Re:XHTML merged by moderatorrater · · Score: 2, Interesting

      They should have XMLized HTML in the first place.

      They did. It's called XHTML.

      And now it's failed. What does that tell us?

    19. Re:XHTML merged by Ant+P. · · Score: 3, Informative

      That most web page authors are too incompetent to even follow XML's validity rules, let alone HTML's?

    20. Re:XHTML merged by Haeleth · · Score: 2, Interesting

      Lazy? Writing messy HTML takes more effort than writing clean XHTML. If you use a decent editor -- one that can take advantage of the structure and parseability of XML to provide validation, auto-completion, etc. on the fly -- then XHTML practically writes itself.

    21. Re:XHTML merged by VGPowerlord · · Score: 2, Interesting

      Under the current draft, browsers choose what set of codecs/container-formats they support.

      Yes, and unfortunately, as far as I can tell, this is how support for the two leading hi-def formats is right now:

      Chrome 2: Supports both Theora and H.264
      Safari 4: Supports H.264
      Firefox 3.5: Supports Theora
      IE 8: Supports neither.

      Congratulations, between the 4 largest browsers we've managed to have all four possibilities you can have with two booleans (2^2)!

      --
      GLaDOS for President 2016! "Well here we are again. It's always such a pleasure." -- GLaDOS, 2011
    22. Re:XHTML merged by Blakey+Rat · · Score: 3, Insightful

      Bullshit. Every person on Earth should be allowed, and encouraged, to create web pages. I hate this elitist crap.

    23. Re:XHTML merged by grcumb · · Score: 2, Insightful

      Bullshit. Every person on Earth should be allowed, and encouraged, to create web pages. I hate this elitist crap.

      You're conflating 'putting content on the web' with 'writing HTML'. They don't mean the same thing.

      There is something to be said for your perspective, though: The majority of the 'tag soup' that's crufted up the Web these days is software-generated, not hand-crafted by so-called stupid users.

      XHTML would have forced makers of stupid (i.e. non-XML-compliant) software applications to fix their engines. That would have required lots of effort, but the value of such an effort is philosophically similar to enforcing health and safety standards on manufacturing processes. Yes, it's cheaper to create quick and dirty implementations, but the public good is better served by enforcing minimal levels of quality. It increases the cost of production, but increases the value of the product, too.

      HTML5 tries for a middle road wherein the parser tries to be more forgiving while at the same codifying the ways in which it should fail. It tries to make the failure modes as graceful and predictable as possible. It's sold as a more pragmatic approach to Tag Soup, a problem that's bedeviled us since FrontPage first reared its zombie head.

      For my part, I think it's the wrong approach. I don't think it's as wrong as some of the sins committed by Netscape (<blink>, frames, etc.) and Microsoft (iframe, marquee) in the early days, when they treated the W3C as their bitch, foisting all kinds of stupidity into their browsers, never making more than a token effort at interoperability and openness. HTML5 is an attempt to move incrementally away from the sins of the fathers.

      From that perspective, I'm willing to live with the decision to adopt it, but only because the W3C, as an industry consortium, just doesn't have the leverage to force its members into full conformance with properly machine-readable code.

      People have always miscalculated the cost of creating HTML. The goal of allowing everyone and their dog to post content - any content - online was considered more important than making sure the content itself would be parseable, extensible (the 'X' in XML) and translatable into other, unforeseeable permutations.

      I fundamentally disagree with this contention. I need only point to the mountain of good content lost in a morass of excreta passing for markup for evidence. When we treat user-generated content as a disposable, one-off product that will never again be parsed, processed or transformed, we devalue it. Essentially, we're stating that user-generated content has no enduring merit.

      Now, some slashdot wit is almost certainly going to acerbically observe that the vast majority of user-generated content wasn't worthy of being published even once, let alone stored for posterity. That's as may be, but it's not our job to judge the content. It's our job to ensure that it remains useful. And we've failed at that job, in large part because we got lazy about markup, foisting most of the work on people who shouldn't be expected to know better, telling them to rely on software that should.

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
  3. Re:Well this is a surprise... by werfu · · Score: 3, Insightful

    The W3C oversee current net content standard evolution. As it's name imply, it's a consortium. It regroup browser developpers, server developpers, thier application developpers, and many others. It doesn't try to override browser developpers. It oversee them on a technical standard view point. Browser developpers submit improvement for them to be included in the norm. This way it garantee that browsers don't split too much from each others.

  4. Yawn by bwintx · · Score: 2, Insightful

    Combined with this information and the browser manufacturers having whupped the W3C over the codecs stuff, not to mention my continuing requirement to support a large number of slackjawed technophobes who don't know there's something better than IE 6, I can't help but feel I'm gonna be stuck coding "HTML 4.01 strict" for a long, long time.

    --
    Discussion System prefs link: http://slashdot.org/users.pl?op=editcomm
  5. CSS 3 spec by Piata · · Score: 4, Insightful

    More importantly, when are they going to finish the CSS3 spec?

    I love that HTML5 is getting pushed to the forefront and browsers are advancing more than ever, but as a web designer that CSS3 spec needs to get done and pushed on the browser developers because it will be another 2 - 5 years before mass adoption and I'm pretty tired of CSS2.1's limitations.

    1. Re:CSS 3 spec by BZ · · Score: 3, Informative

      There is no "CSS3 spec". There is a whole bunch of separate specs all advancing along the REC track separately. They're at various stages of readiness.

      For example, CSS Namespaces is in CR ("spec work done, implement it please"). It'll become a REC once there is a test suite and two interoperable implementations and the various paperwork involved in becoming a REC is done.

      Selectors Level 3, CSS Color Level 3, CSS Multi-column layout are all in Last Call, with the next step being either CR or PR (PR is "this is done implemented and all; just needs sign-off from the W3C staff"). Same for Media Queries, CSS Basic User Interface, CSS Marquee Level 3, CSS Print Profile, etc.

      Was there a particular part of "CSS3" you were interested in seeing specced and implemented?

    2. Re:CSS 3 spec by jilles · · Score: 2, Interesting

      That's the whole problem. All the experts are working for the browser vendors. The W3C never had any business overriding them. Css3 will never happen (standardized & widely implemented). But of course the relevant bits have long been implemented and now those await standardization. It would be nice if w3c bureaucracy could catch up here.

      Basically what's wrong here is that after a agile start in the nineties, w3c turned into yet another standards organ. Essentially, for most of the past ten years they've done nothing relevant. Most of the good stuff on the web today basically bypassed their processes (AJAX, HTML5, javascript, DOM). At some point XHTML was hijacked by the Semantic Web crowd. This was essentially given a well deserved neck shot today. They never produced standards or products worth reporting here. Meanwhile, browser vendors had to organize outside the W3C to get some progress going. Current HTML5 is the result of that. Anything else ongoing in W3C is pretty much not relevant (unless you are part of the Semantic Web crowd). Css3 is a good example of why standardize first and implement later is a bad idea.

      --

      Jilles
  6. No more compound documents? by otakuj462 · · Score: 2, Interesting

    What I liked about XHTML was the conceptual clarity regarding the creation of compound documents. Like XML, XHTML is modular, precise and fully extensible via XML namespaces. This allowed one to augment XHTML without needing to fully revise the XHTML spec: one simply needed to use an alternate XHTML namespace inside of the XHTML document. So, for example, this made it very easy to use XHTML in conjunction with SVG, another XML application. I know that HTML5 defines ways in which it may be used in conjunction with SVG, but I'm not sure if it's extensible in the same way. What happens if we want to mix in another format, like XForms? Will we have to go back and revise the complete HTML5 spec?

    1. Re:No more compound documents? by TheRaven64 · · Score: 3, Informative

      XHTML 1 is basically HTML4 with the added requirement that the document must also be well-formed XML. This is useful, because it allows you to put any other arbitrary (but properly-namespaced) XML data in the same file. XHTML 2 was meant to dramatically reduce the number of valid tags, clean up HTML even more than HTML 4 did, and split the spec into a large collection of smaller standards. No one really liked it; it was developed in the traditional W3C 'let's create a new standard without thinking too hard about how it will be implemented' way.

      HTML 5 is an evolution of HTML 4 backed by people who actually implement these standards and developed in a more incremental way. Unlike HTML 4, HTML 5 doesn't specify the representation. It has SGML and XML bindings. HTML 5 with the SGML binding looks like classic HTML, HTML 5 with the XML binding looks like XHTML. HTML 5 with the XML binding has all of the advantages of XHTML; you can mix it with any other XML data in the same file, and have a unified DOM tree.

      --
      I am TheRaven on Soylent News
    2. Re:No more compound documents? by Xest · · Score: 3, Informative

      "XHTML 1 is basically HTML4 with the added requirement that the document must also be well-formed XML"

      It also deprecated a lot of the older tags that were made obsolete by CSS hence encouraging better separation of document structure and presentation. Unfortunately HTML5 undoes this particular good work because it caters to the lowest common denominator (i.e. bad developers who don't "get" separation of concerns and trivially parsable markup).

      "HTML 5 is an evolution of HTML 4 backed by people who actually implement these standards and developed in a more incremental way."

      The problem is, those people implementing those standards have proven time and time again how incompetent they are at implementing those standards. The state of standards compliance in browsers has for well over a decade been utterly shameful and that really goes for Firefox as much as it does IE. I'd argue it's those who use the standards that know best - people building the biggest sites on the net because they're the ones who need the markup to be able to support large scale application development. Browser vendors need to be able to implement that standard, don't get me wrong, but putting faith in them as the ones who guide the standards has time and time again proven disastrous - look at the HTML5 video tag debacle for perhaps the most recent example.

      I'm not disagreeing with you though, XHTML2 wasn't brilliant, but I'm not convinced HTML5 is even any better than XHTML1 which was also an evolution of HTML4 and IMHO a better one. It was designed with those people building enterprise applications for the web in mind rather than joe average, who is more content using the likes of MySpace and Facebook to manage their content for them in the first place.

      Of course, HTML5 can do everything XHTML does for the reasons you state, but sadly it seems to encourage bad practice whereas XHTML discouraged it. One final beef I have with HTML5 is that accessibility seems to have been ignored in it's creation, for example there were no real efforts to ensure easy inclusion of subtitles the previously proposed audio/video formats. Again, we really just don't seem to be any further on with web standards than we were at the start of the decade and again, the people to blame are the browser vendors as much as the W3C and it's allowed not particularly ideal or portable proprietary tools such as Flash to gain a lot of ground as a result.

    3. Re:No more compound documents? by TheRaven64 · · Score: 4, Informative

      It also deprecated a lot of the older tags that were made obsolete by CSS hence encouraging better separation of document structure and presentation. Unfortunately HTML5 undoes this particular good work because it caters to the lowest common denominator (i.e. bad developers who don't "get" separation of concerns and trivially parsable markup).

      I think you read a different version of HTML 5 to me. It still deprecates or removes all of the tags that HTML 4 and XHTML 1 removed, for example removing the center and font tags which were only deprecated by HTML 4.

      Where it introduces new tags, it is for expressiveness. A lot of the 'separation of content and presentation' folks seem to think that HTML just needs three tags; span, div, and object. HTML 5 doesn't add more presentation elements, but it does add more tags with well-defined semantics. Examples of this include section and nav tags. These don't specify anything about the presentation, they just indicate that a part of the document is a section, or a set of navigation commands. A mobile browser, for example, might have an option to hide and show the nav section to conserve screen space.

      Take a look at the current draft of HTML 5. You'd be hard-pressed to find anything presentation-related. Presentation still goes in the stylesheets, HTML 5 just adds tags for common things so you don't need quite so many class attributes.

      --
      I am TheRaven on Soylent News
    4. Re:No more compound documents? by Bogtha · · Score: 4, Informative

      Unlike HTML 4, HTML 5 doesn't specify the representation. It has SGML and XML bindings. HTML 5 with the SGML binding looks like classic HTML

      No, HTML 5 has an XML serialisation and a tag-soup-compatible serialisation that, yes, looks like classic HTML, but in fact isn't based on SGML. It's based on the way popular browsers parse HTML rather than what they are supposed to do according to previous HTML specifications. One consequence of this is that obscure parts of previous versions of HTML that are not well-supported by popular browsers are not supported by HTML 5 - it's not completely backwards-compatible with previous versions of HTML.

      --
      Bogtha Bogtha Bogtha
    5. Re:No more compound documents? by Bogtha · · Score: 4, Insightful

      Take a look at the current draft of HTML 5. You'd be hard-pressed to find anything presentation-related.

      I think this attitude is more a case of wishful thinking and sometimes outright denial rather than than reality. Take a look at some of these, for instance:

      1. <br> and <pre> - explicitly control line-breaking (<pre> has ASCII art as a use case!).
      2. <ul> and <ol> - the order of HTML elements already forms part of their semantics. The real reason both element types are kept around is because one is numbered and one is not.
      3. <small> - nuff said.
      4. <i> - I'll quote this, because it's utterly laughable: "The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, a thought, a ship name, or some other prose whose typical typographic presentation is italicized." - or, in other words, "let's list every case we can think of where using italics is the typographical convention so we can pretend it isn't an element type that means use italics." Are there any real shared semantics between a ship name and a thought? No, they just want to use italics.
      --
      Bogtha Bogtha Bogtha
    6. Re:No more compound documents? by FishWithAHammer · · Score: 2, Insightful

      Count me in as one of the "give me more expressiveness" crowd. Span, div, and object are good enough for most purposes, but have their own problems. Writing [X]HTML/CSS pages for all media--conventional browser, print, and screen readers--is a bear. Having sane defaults for tags like STRONG and EM--that is, a certain inflection for the screen reader, and a decent-looking print default--saves developers a lot of time.

      --
      "You can either have software quality or you can have pointer arithmetic, but you cannot have both at the same time."
  7. Sounds like a few people are confused... by MassacrE · · Score: 5, Informative

    XHTML 1 was the XML-ization of the existing HTML 4 stuff.

    XHTML 2 was a new HTML version that sought to remove lots of HTML cruft (including non-XML syntax) and add new capabilities. Basically, it was working toward a new HTML version. This effort has died, because browser makers are not behind it - they are all behind HTML 5.

    HTML 5 has always had an XML profile called XHTML 5, and that won't go away.

    1. Re:Sounds like a few people are confused... by Serious+Callers+Only · · Score: 2, Informative

      The doctype.

      Not sure you'll like the answer : ) :

      <!doctype html>

      I believe because they wanted to keep it short and simple, and hixie doesn't believe in versioning HTML - having a version-less doctype forces people to keep it backwards-compatible when html6 rolls around. Perhaps someone else who followed the process better can chime in here.

  8. Re:I'm disappointed. by Phroggy · · Score: 2, Informative

    XHTML has some great features, notably the ability to embed MathML and SVG in it (great for academic sites) and strict error handling. Unfortunately these features never caught on because Internet Explorer doesn't understand the XHTML MIME type at all. What a shame.

    I'm not familiar with the MathML and SVG features. Hopefully there's another (if less elegant) way to do what you want in HTML5.

    As for strict error handling, one of the things HTML5 is doing is defining exactly how errors are supposed to be handled. This doesn't mean "strict" error handling in the sense that any page that contains an error will completely fail to load at all, but it does mean we can expect a consistent behavior across multiple browsers even when the HTML doesn't validate.

    The trouble with XHTML is that many web pages today are generated from multiple sources; a single page may not really be a single coherent document, but a conglomeration of little pieces. When coders get sloppy, this results in a document that doesn't validate. If you're using XHTML with strict error handling, this can break the entire page. If you're using HTML with clearly defined but less strict error handling, it may result in some of your content not looking quite right, or the browser may be able to guess how it's supposed to work and it ends up looking just fine. This isn't an ideal world, but we don't live in an ideal world; this is what the Web has evolved into, and we need to accept that.

    What really killed XHTML is that it became a buzzword used by people who had absolutely no idea what the hell they were doing. A bunch of idiots jumped on the XHTML bandwagon, added lots of slashes to their broken HTML code, and called it XHTML. Browsers ignored the extra slashes and rendered the broken HTML the same way they always had, and the idiots thought XHTML was the greatest thing since sliced bread. Half the Web looks like that now, and there's nothing the W3C can do to make everybody start writing valid XHTML, so why even bother?

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  9. Re:Rendering by mat+catastrophe · · Score: 3, Insightful

    Does this mean that someday /. will actually render properly in a browser? I used IE, FF, Opera, and Safari all regularly. /. does not reneder 100% in any of them :(

    How do you know that one of them isn't proper and the rest are merely deviations from proper? Or, more accurately, how do you know what it is supposed to look like if you say they are all wrong?

    --
    sig not found
  10. Re:Rendering by Anonymous Coward · · Score: 4, Funny

    Simple: view source --> use your "The Matrix" vision to render everthing in your brain.
    Every serious developer knows how to run code in his brain, that's how I run all my unit tests!

  11. HTML 5 parsing is just awful. by Animats · · Score: 3, Insightful

    At least with XML you have a simple, well-defined way to convert the XML text to a tree. With HTML 5, there's only "well-defined error handling". Read the sort-of specification for this.

    Here's what's supposed to happen for just one of the hard cases. (There are dozens of other cases, some at least as ugly.) Parsing is in "body" mode (normal content) and an end tag whose tag name is one of: "a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small", "strike", "strong", "tt", "u" has been encountered.

    Follow these steps:

    1. Let the formatting element be the last element in the list of active formatting elements that:
      • is between the end of the list and the last scope marker in the list, if any, or the start of the list otherwise, and
      • has the same tag name as the token.

      If there is no such node, or, if that node is also in the stack of open elements but the element is not in scope, then this is a parse error; ignore the token, and abort these steps.
      Otherwise, if there is such a node, but that node is not in the stack of open elements, then this is a parse error; remove the element from the list, and abort these steps.
      Otherwise, there is a formatting element and that element is in the stack and is in scope. If the element is not the current node, this is a parse error. In any case, proceed with the algorithm as written in the following steps.

    2. Let the furthest block be the topmost node in the stack of open elements that is lower in the stack than the formatting element, and is not an element in the phrasing or formatting categories. There might not be one.
    3. If there is no furthest block, then the UA must skip the subsequent steps and instead just pop all the nodes from the bottom of the stack of open elements, from the current node up to and including the formatting element, and remove the formatting element from the list of active formatting elements.
    4. Let the common ancestor be the element immediately above the formatting element in the stack of open elements.
    5. Let a bookmark note the position of the formatting element in the list of active formatting elements relative to the elements on either side of it in the list.
    6. Let node and last node be the furthest block. Follow these steps:
      1. Let node be the element immediately above node in the stack of open elements.
      2. If node is not in the list of active formatting elements, then remove node from the stack of open elements and then go back to step 1.
      3. Otherwise, if node is the formatting element, then go to the next step in the overall algorithm.
      4. Otherwise, if last node is the furthest block, then move the aforementioned bookmark to be immediately after the node in the list of active formatting elements.
      5. Create an element for the token for which the element node was created, replace the entry for node in the list of active formatting elements with an entry for the new element, replace the entry for node in the stack of open elements with an entry for the new element, and let node be the new element.
      6. Insert last node into node, first removing it from its previous parent node if any.
      7. Let last node be node.
      8. Return to step 1 of this inner set of steps.
    7. If the common ancestor node is a table, tbody, tfoot, thead, or tr element, then, foster parent whatever last node ended up being in the previous step, first removing it from its previous parent node if any.
      Otherwise, append whatever last node ended up being in the previous step to the common ancestor node, first removing it from its previous parent node if any.
    8. Create an element for the token for which the formatting element was created.
    9. Take all of the child nodes of the furthest block and append them to the element created in the last st
    1. Re:HTML 5 parsing is just awful. by Tiles · · Score: 4, Informative

      Now try to imagine Microsoft, Opera, Mozilla, and Google implementing that compatibly.

      I believe they already do, for the most part. HTML5 parsing rules were mostly reverse-engineered from existing browsers' HTML parsing rules, which are more or less consistent across modern browsers, so it's only documenting what most existing browsers already do.

      What the spec is defining is a limited subset of an SGML-like language (whose entire parsing rules, if incorporated into HTML, would span for pages) and how to transform it into a DOM. It isn't mandating any new parser rules, it only documents them for the benefit of new implementations of the spec, and to align what minor variations there are between browser parsing models together. Compared to SGML rules (of which HTML 4.01 is technically a subset), this is a great improvement.

  12. Will they roll XHTML 2 features into X/HTML 5? by Pfhorrest · · Score: 2, Interesting

    I see a lot of debate here about XML versus SGML (or SGML-like) serialization and parsing rules, and plenty of people (rightly) pointing out that there is an XML version of HTML 5.

    But what about those features which those of us who already code strictly to spec either way really care about? New elements that were scheduled to debut in XHTML 2.0 such as nl, h and section, the ability to put href and src attributes in any element, etc?

    Those are the sorts of things which made the debate for me, not some silly XML vs SGML, strict vs lenient debate - either way I'll be writing my code for strict compliance with spec. I'm more concerned with what the features of the spec will be! Less so with how it deals with people out of compliance with it.

    So any news on whether X/HTML 5 will be incorporating any of these, now that it's a W3C project and XHTML 2 is dead?

    --
    -Forrest Cameranesi, Geek of all Trades
    "I am Sam. Sam I am. I do not like trolls, flames, or spam."
  13. XML mode and separating author/browser concerns by spage · · Score: 2, Informative

    Now if they implement HTML5 right, and we get the same cleanness that XHTML 1.1 had (Strict only. No transitional shit.), and they add cross-language abilities too (trough SGML), then I'm all for it!

    1. There is an XML mode for HTML5, see HTML vs. XHTML. HTML5 even uses the same xmlns="http://www.w3.org/1999/xhtml/" namespace.
    2. HTML5 tries to defines exactly how a browser should handle the billions of unclean documents out there. This will help browser interoperability in the real worldwide web of garbled HTML, and has huge benefits for script parsing HTML because the DOM contents after reading in HTML should be somewhat similar in different browsers.
    3. Despite this, HTML5 specifies very clearly how authors should write HTML. It separates conformance for authors (write stuff correctly!!) from conformance for browsers (there are billions of crappy HTML documents out there, deal with it). Read Why does HTML5 legitimise tag soup?: "Just because browsers are required to handle erroneous content, it does not make such markup conforming. "

    Have some faith, the HTML5 spec and its writers are wayyyyy smarter than /. commenters!

    --
    =S
  14. HTML5: Just Say NO by jonadab · · Score: 2, Interesting

    > so get on the HTML 5 bandwagon now.

    Not gonna happen, fanboy.

    HTML 5 takes entirely too many steps in the wrong directions. I'm not interested in going there. I'm *definitely* never going back to non-wellformed SGML-oriented markup, and that's just for starters.

    Though, to be honest, I wasn't real excited about XHTML2 either. Not so many steps in *wrong* directions, but plenty of *unnecessary* changes. Meh. I'm not really going to mourn its loss.

    What I really want is XHTML 1.0.1, the only difference from 1.0 being that you can put block-level elements within a paragraph. That's the only change I really wanted.

    So hey, I can live with 1.0. I'll just keep using <div class="p"> like I have been. It's a kludge, but it works.

    Or maybe I'll just study up a bit and end up going to straight XML with a custom namespace. Then I can have my block-level elements inside of paragraphs :-)

    --
    Cut that out, or I will ship you to Norilsk in a box.