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."
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
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.
Much like the sun rising in the east tomorrow. I never quite understood what w3c thought it was doing trying to override browser developers.
I am a science fantasy fan
> 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."
From the linked FAQ:
Does W3C plan for the XML serialization of HTML to remain compatible with XML?
Yes.
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
Best or worst?
Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
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.
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.
Sometimes it is good to have various standards within the same area, because of conflicting interests, etc. But when new or modified standards resolve these conflicts, the best this would be to merge with or adapted the new standard. It would be nice if this could happen with more standards (and licences for that matter), just to keep things a bit clean.
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?
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.
I know a lot of web developers who dont know the difference between XHTML and HTML
I've used both, and because of the strictness and use of lower case tags of xhtml I prefer it. Maybe there's only a few people it bothers but using all large cap tags bothers me. I also like it that xhtml separates content from structure. I don't know much about html5 but I hope it includes these.
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
Thanks for the link. Though it's not finalized maybe I can start learning it.
Falcon
Should there be a Law?
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 :(
The MIME type sent in the headers never mattered.
If you fed IE7+ a XHTML doctype, it would pretty much render XHTML. Ditto with every other browser.
As has been said, XHTML is basically well formed HTML (with "depreciated tags" that you'd use anyway). When HTML5 rolls around, I expect many people including myself to just use the new tags and attributes and still produce well formed XML. Same as we've done for XHTML--take HTML4 and make it valid. All the browsers will take it and I bet it won't even violate whatever DTD this new thing uses.
In otherwords, there never was a standard and there never will be. The closest standard you can get is "is this valid XML"... if you can get valid XML, all the browsers will *parse* the thing in the same way. Of course, how they render said parsing isn't quite standard. The "rendering differences" is where the fun starts.
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:
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.
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.
I am glad for this. That major fork is not what we need right now. One unified, open standard is the way to go for the web.
People can piss and moan all they want about the drawbacks, but this does nothing. If it is a problem, push for HTML to integrate the advantages XHTML had over it.
Truth, Just Us, And Hatred For All Mankind!
Not true; XHTML does not have optional closing tags. HTML does. XHTML 1.0 Strict is actually stricter than HTML. Only an XML parser will complain, true, but that does not mean that browsers won't silently poop themselves and render the page wrong on something they should have reported as a parsing error to start with.
I'm not joking; the power of html is that it's simple, human-readable, and error-tolerant enough for anyone to use. If your mom can't learn xhtml, it's not doing its job.
I am referring to webform apps, not MVC.
.Net 2.0 - 3.5 uses for some of it's post backs, we are unable to make our pages xhtml compatible. The postback code works fine in IE, but no other browsers if the form tag appears outside of the body tag. Unfortunately because of the design of .Net we have to have the form tag outside of the body, which causes us to do a really ugly hack to get it working in all browsers. That hack is to put a body tag, the form tag, then in our template we have the actual body tag. Of course this makes our pages not xhtml conformant, but it's the only thing we've found that works around the CLR 2 bugs. This was not a problem in .net 1.1 because the postback code was properly written. Hopefully this is fixed in .Net 4, but I doubt it.
Unfortunately because of the broken Javascript code that
Microsoft, Apple, Google, Amazon what's the difference? All steal money from devs and control with walled gardens.
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."
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!
Have some faith, the HTML5 spec and its writers are wayyyyy smarter than /. commenters!
=S
So, we should still be ensuring that all tags have matching close tags?
Well, duh, obviously if your document is XML according to its mime type. If it's HTML then it can have matching close tags; from WHATWG's HTML vs. XHTML, "If you attempt to send XHTML as text/html, you are actually just using HTML, possibly with syntax errors."
What will the document header be?
There's a web site that answers such questions.
I have been told that making page uses XML compatible HTML makes for a more predictable browsing experience and also lowers memory requirements.
The first claim is turning off quirks mode and using strict mode in various browsers, a complicated subject. I believe a document authored conforming to HTML5 is always and only strict mode; HTML5 also tries to make browser handling of "tag soup" more predictable. The second claim... {{citation needed}}?
=S
> 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.
this is a strange result. Just quite as off topic or are we ?
I think the only major difference in the code is the self closing tags.
I have no problem with self closing tags. I started with html4, then when I started xhtml at first some things seemed strange such as self closing tags but I picked them up quickly. Now it makes sense to close all tags.
Just like xhtml, most attributes that have to do with styling in tags have been deprecated.
Currently I don't know CSS well, then again I haven't created webpages much in a few years, but it seems logical to separate content from style.
Falcon
Should there be a Law?
HTML is case insensitive, so you can use lower case tags if you wish
I know but I've tried to read too many html documents where all the tags are capitalized. As strange as it may seem looking at all the caps give me a headache.
XHTML 1 has exactly the same semantics as HTML 4.01, so XHTML and HTML are equally strict and separate content from structure to exactly the same extent.
I've seen many more html pages with inline styles than I have with xhtml, as a ratio between style sheets and inline styles for xhtml and html.
Falcon
Should there be a Law?
Okay, I am now using text/xml, but IE8 is rendering the raw XML. Is there a trick to get IE8 to behave?
Jumpstart the tartan drive.
You are confusing serialisation with strictness or restrictiveness. The vocabulary of the three versions of HTML4 and of XHTML1 are virtually identical (there are actually a few minor differences between HTML4 and XHTML1 for technical reasons). HTML4 Strict/XHTML1 Strict are stricter than HTML4 Transitional/XHTML1 Transitional. A valid document in HTML4 Strict (or XHTML1 Strict) will be valid in HTML4 Transitional (or XHTML1 Strict), but the reverse need not be the case. The serialisations follow different rules, which has consequence in how the elements are represented. This is the same with HTML5, which also has two serialisations, one using a clearly defined HTML syntax (instead of a conceptual SGML syntax), and the other using an XML syntax (called XHTML5).