Blog

HTML 5 won over XHTML 2

2009-07-06 21:23:42 by Martynas Jusevičius

Some time ago I was wondering what the future of XHTML 2 and HTML 5 is going to be. Now it seems to be clear: W3C announces end of work on XHTML 2, and hopes to accelerate work on HTML 5.

It's good to have it finally sorted out, and HTML 5 seems to bring some long awaited features. However, one thing about it worries me a lot, and it's the syntax. The specification now defines two variants of them: HTML 5 (old-school HTML style, with no closing tags) and XHTML 5 (XML serialization, with namespaces etc.).

Years have been spent on developer education and improving XML support in browsers and parsers, and HTML 5 seems to make them useless again and bring even more confusion. Even though W3C promises XML serialization of HTML to remain compatible with XML (I hope there were no plans to change that, at least?) we still will have 2 syntaxes and 2 sets of tools to process them, and once beggining to seem possible, convergence to a single XML serialization will be as far away as 10 years ago.

HTML is not easier to parse than XHTML, supported basically on the same level, has no extension mechanism (like namespaces), and is arguably less logical to write (when is there a closing tag, and when not?). So why the nonsense?

Digg Digg this! del.icio.us del.icio.us!

Comments (44)

Sorry, but this is FUD

2009-07-06 23:42:05 by Lars Gunther

A. No, we will not have two different sets of tools. XSLT etc will all work with the plain HTML serialization as well.

B. You may still use application/xhtml+xml for all non MSIE browsers, if you really need namespaces, etc. Nothing has been withdrawn.

C. "I hope there were no plans to change that, at least?" Are you serious? Such a fear is 100 % imaginary, 0 % real.

http://hsivonen.iki.fi/xhtml2-html5-q-and-a/

http://www.la-grange.net/2009/07/05/html5-xhtml5/

2 Lars

2009-07-07 00:08:06 by Martynas

And how is XSLT supposed to work on HTML serialization? I would like to know. Somehow automagically XML parsers will start working with HTML as well?

2 Lars

2009-07-07 00:21:08 by Martynas

Ok, I read your second link, and it proves my point completely - it is suddenly mentioning "HTML5 parsers" all over the place. Isn't that a new set of tools? Or do you see all XML tools getting HTML5 bridges like a minor issue? It's too crazy for me even to think about it, it ruins the whole purpose of XHTML.

2009-07-07 02:37:17 by Padraic Brady

Nah, it's all different. HTML5 parsing will need it's own new algorithms distinct to what we have been using. All those libxml based XHTML parsers (e.g. using PHP5 DOM and XPath) will need to account for the new branch as it extends into the wild. But it is cleaner, and there is a HTML5 parsing algorithm to standardise with, and it can be given a DOM compatible API. Of course, implementing as is in the native language (e.g. PHP) makes it pretty slow which is why you'll find a stack of pushes to have it included in libxml (which would eventually means it hits PHP5 or 6) so it's available more transparently even to existing clients with minimal effort. The main barrier going forward will really be developer ignorance, especially now that major browsers support the draft standard leading to the beginning of HTML5 rolling out to webservers in small steps.

Agreed :(

2009-07-07 03:33:35 by Simon Harris

Agreed. Sadly, this all-of-a-sudden acceptance of HTML (read, SGML), combined with the painful, brainless proliferation of Ajax (read, Javascript) sets the web back about 10 years. What's next - animated GIFs and marquee tags?

Don't see the problem...

2009-07-07 04:13:23 by David

Maybe what Lars was referring to was Polyglot documents. That said, we already have two sets of tools, so I don't see it as being that big of an issue. The idea of converging on a single XML spec was dropped ages ago, and I don't think there are any plans for this any more. In fact the trend has been moving the other direction, away from XML. There's some good discussion regarding XHTML and HTML5 here:
http://ejohn.org/blog/html-5-data-attributes/

Also, there's the problem that only Gecko, Webkit and Presto provide full support for XHTML If you're going to use it, it's really only safe to do so on closed systems where you can safely disregard the majority (unless you're using a text/html mime type, in which case, the browser treats it as HTML anyway).

yjMTBwahDHOJOYXzNGh

2009-07-19 13:06:45 by okersrwqi

oejdSX <a href="http://rizlrumxgpzl.com/">rizlrumxgpzl</a>, [url=http://tdioopovwdgf.com/]tdioopovwdgf[/url], [link=http://brwqfltmuacy.com/]brwqfltmuacy[/link], http://diuhtkqmpzfw.com/

QeMONZzK

2009-07-22 12:53:41 by Viktor

Doxycycline And Dry Eye what Doxycycline Flagyl what Doxycycline Ticks what Doxycycline Prostatitis what Doxycycline Neck Pain

dgKtnYDgMuFALkG

2009-07-23 16:13:56 by Lee

medz Order Tramadol Ultram medz 100Mg Tramadol medz Online Ordering Tramadol COD medz Mexican Tramadol medz Order Chead Tramadol C O D

OERMIcevXv

2009-07-26 03:12:07 by Yalle

Compare Cialis To Viagra ed Soft Cialis ed Cialis Online Get Cialis Cheapest ed Tadafil Cialis ed Cialis Australia

ydCAPFNKoUrKFGJx

2009-07-26 06:04:24 by Wallgreen

Cialis Pills Without A Prescription ed Cialis Drug For Impotence ed What Is Better Cialis Or Viaga ed 20Mg Cialis ed Cialis Alternative

spXmWLcNsUhKIsyPnjz

2009-07-26 18:44:00 by Molly

Will Insurance Pay For Cialis ed Which Is Better Viagra Levitra Cialis ed Cialis Canada Rx ed Cialis Italia ed Cialis Advice

vUpVcgByBCVJmJiTPO

2009-07-28 11:11:10 by Oprah

Cialis Errection ed Discouny Cialis ed Expired Cialis Still Safe ed Cialis Soft Tabs Xm Radio Commercial ed Cialis Floaters

Wrong Direction

2009-08-01 13:03:45 by Mr Latty

Seems to me that the wrong one one and were all moving forward in the wrong direction!

bgvRgZApMOrv

2009-08-07 00:51:09 by xddzis

W3tfB3 <a href="http://esvpmopkbcyp.com/">esvpmopkbcyp</a>, [url=http://ogkviootieve.com/]ogkviootieve[/url], [link=http://dinlqgolpsph.com/]dinlqgolpsph[/link], http://czngqrrpwrzs.com/

PwZEOHydpadFVB

2009-08-09 20:22:15 by Tina

What Amoxicillin Is For ed Amoxicillin Resistance Children ed Cheap Amoxicillin ed Amoxicillin For Ear Infection ed Dosage Chart For Amoxicillin

OERStfpTE

2009-08-10 20:00:49 by Xena

Amoxicillin Antibiotics Weil ed Treatment Of Strep Throat Amoxicillin ed Oral Amoxicillin Dosage Feline Weight Cat ed Amoxicillin Use In Cats ed Nursing Responsibility In Giving Amoxicillin

faqbYaeq

2009-08-20 13:49:51 by xtgzvvq

KLRlfl <a href="http://cjcvnoflhtqq.com/">cjcvnoflhtqq</a>, [url=http://qcsqaiypubuh.com/]qcsqaiypubuh[/url], [link=http://oilympipuwvq.com/]oilympipuwvq[/link], http://rnytysgmnsge.com/

dUZtnutGt

2009-08-23 11:43:39 by Nora

Seroquel As Used In Manic Depression usa Drug Of Seroquel usa Seroquel Use usa Seroquel Lawsuits usa Seroquel Ld50

orkencIWl

2009-08-24 15:00:55 by Hillary

Seroquel Doses usa Seroquel Brain Blood Flow Increase usa Seroquel And Alcoholics usa Seroquel Effexor Weight Gain usa Side Effects Seroquel Thrist

xnwebqft

2009-08-26 00:26:53 by xnwebqft

MHUjCo <a href="http://ziqbhxtajmdt.com/">ziqbhxtajmdt</a>, [url=http://itvxgjtudoju.com/]itvxgjtudoju[/url], [link=http://uqtjzpbjadlb.com/]uqtjzpbjadlb[/link], http://ozjrllxpkiba.com/

jZgzFPtLpzVjCxUFfHo

2009-08-26 08:37:59 by Hillary

Large Dose Ativan usa Ativan Tramadol Hydrocodone Alcohol Zoloft usa Birth Defects From Ativan usa Ativan Metabolism Cypd usa Wikipeidia Ativan

VLzjsSJevwJrI

2009-08-26 14:41:06 by John

Ativan Intranasal usa Side Effects Of Ativan And Flexeril usa Ativan Sleep usa How To Shoot Ativan Pills usa Ativan Effectiveness

WZerazkJezwUTUfynI

2009-08-27 01:29:20 by John

Ativan Elderly usa Ativan Lowered Blood Sugar usa Ativan And Alcohol Use usa Ativan As A Muscle Relaxer usa Ativan Fedex Pharmacy

vrFQwMwGb

2009-08-27 09:23:23 by Xena

Ambien Ativan Drug Interactions usa Ativan Memory Loss usa Ativan Usual Dosage usa Buy Online Ativan usa Differences Between Xanax And Ativan

vrFQwMwGb

2009-08-27 09:24:20 by Xena

Ambien Ativan Drug Interactions usa Ativan Memory Loss usa Ativan Usual Dosage usa Buy Online Ativan usa Differences Between Xanax And Ativan

QkwzlyVKmFlaW

2009-08-27 10:14:11 by John

Ativan Klonopin Xanax Valium usa Ativan Keyword usa Can I Take Ativan With Cymbalta usa Ativan No Prescription Overnight Delivery Cod usa Ativan Vs Omega 3

kPbZcaXFaPNZWFpat

2009-08-27 21:17:42 by Connro

Acai Berry Detox usa Acai Berry Research usa Acai Berry Supplement usa Acai Berry Juice usa Pure Acai Berry

aWmMGKCFaMZTnBQUI

2009-08-27 21:26:18 by Graham

Acai Berry Reviews usa Acai Berry Properties Health Benefits usa Acai Berry Power 500 usa Pure Acai Berry Pro usa Acai Berry Scam

WiclSJUsKY

2009-08-27 21:32:24 by Anna

Side Effects Of Acai Berry usa Acai Berry Weight Loss usa What Is Acai Berry usa Acai Berry Side Effects usa Acai Berry Colon Cleanse

UlVFnbJrvKsFHmQy

2009-08-27 21:41:09 by Lee

Extreme Acai Berry usa Where To Buy Acai Berry Capsules usa Acai Berry Maxx usa Acai Berry Edge usa Acai Berry Stomach Secret Sandpoint Id

IggQlagOxg

2009-08-27 21:46:21 by Tina

Acai Berry Http usa Dr Oz Acai Berry usa Acai Berry Burn usa Where To Buy Acai Berries usa Acai Berry Rachel Ray

pemqojNFYPKloOBJ

2009-08-27 21:55:29 by Quark

Acai Berry Supplements usa Truth About Acai Berry usa Best Acai Berry Products usa Acai Berry Mobile Al usa Whole Acai Berries Wholesale

yVlwEKHMpVmjzDOPj

2009-08-28 17:14:19 by Patrick

Acai Berry Researech usa Acai Berry Distributors usa Acai Berry Diet Forum usa Cheap Organic Acai Berry usa Medical Facts Acai Berry

RfvRClxWF

2009-08-28 21:49:35 by Graham

Best Acai Berry Juice usa Acai Berry Natural Pills usa Best Forms Of Acai Berry usa Best Rated Sources Of Acai Berries usa Acai Berry Tablet

solicitors

2009-09-13 10:43:59 by Nowin

Agreed. Sadly, this all-of-a-sudden acceptance of HTML (read, SGML), combined with the painful, brainless proliferation of Ajax (read, Javascript) sets the web back about 10 years. What's next - animated GIFs and marquee tags?

omkbpercmm

2009-09-24 02:48:22 by omkbpercmm

NAYVj9 <a href="http://lfiywtjcttub.com/">lfiywtjcttub</a>, [url=http://gvlzrqqqvtoe.com/]gvlzrqqqvtoe[/url], [link=http://wvmnawcnrtqu.com/]wvmnawcnrtqu[/link], http://ngzrppdtirfy.com/

hetWkmmqQKkWiWuyN

2009-10-27 19:33:04 by acgeapzj

DGwk13 <a href="http://inhevsphhotw.com/">inhevsphhotw</a>, [url=http://agnrngmaqxvm.com/]agnrngmaqxvm[/url], [link=http://qjaboynxaxod.com/]qjaboynxaxod[/link], http://rwizdlglrixa.com/

qcywYnWOgOKKcTyn

2009-12-04 07:52:46 by ljjzvs

9gR09k <a href="http://csrbggxopasu.com/">csrbggxopasu</a>, [url=http://bwokfcuqciuw.com/]bwokfcuqciuw[/url], [link=http://ddzhgigqydzx.com/]ddzhgigqydzx[/link], http://lbrddlmyiwet.com/

marvelous

2009-12-14 13:56:53 by network+ training

well a good, post , and site which I ever seen, I like your work and really appreciate your work you have done well right now i am doing job at Pasban Faisalabad its an IT based organization and doing a project on SEO and internet marketing, i love my job my boss and my organization but there is a problem of employee right violations, like whenever i make a single leave then the salary is also deducted from my salary and as well i have to do extra work like late hours work for a whole weak, its a horrible situation but we have to do because we have no more opportunities in market due to global economic crunch which really effects our country. well right now i am doing a+ which really enhace my IT skills and add values to my life.


thanks,

xrNheKmkhwmlpgTDBJP

2009-12-18 13:32:21 by vtijjq

JZPybB <a href="http://ssofzsrlzoig.com/">ssofzsrlzoig</a>, [url=http://odnieoswlfaj.com/]odnieoswlfaj[/url], [link=http://aouasrglvnkd.com/]aouasrglvnkd[/link], http://diwahsmiqdhh.com/

latest trend

2010-01-25 13:46:27 by somaie

After last post on marketing without search engines, I decided to follow up with a strategy you can use to get quality free traffic. One of the easiest ways to get visitors to your web site is to spend money. Nothing is more effortless then paying for traffic. But if you can’t afford it or don’t want to pay, there’s an equally simple but free way to get traffic: ad swaps.
www.onlineuniversalwork.com

Lacking backbone

2010-01-27 00:44:18 by Shoe dictionary

W3C is not showing any leadership here. Seems like they're giving up to me, no?

Yeah, what he said

2010-01-27 01:19:24 by Women's designer and ladies shoes online

i agree that the w3c is being to relaxed here. I thought they were supposed to be leading the pack so to speak. It's like they can't make up their minds and agree to do both ways in an effort to pacify both sides

--
learn what is and any definitions you seek regarding women shoes
http://www.jildorshoes.com/shoe-dictionary/

New comment






No HTML allowed.