Hixie's Natural Log

2003-01-15 11:41 UTC And on the Eighth Day, He brought forth Progress. And it was good.

Several people have asked me what I think of XHTML2.

In the words of Jack O'Neill, it seems I am not receiving all my memos. Apparently, the popular position at the moment is to diss XHTML2. I'm not entirely sure when this became popular — I think it was last week sometime.

XHTML2 is a working draft, a work in progress, an incomplete specification with many recorded open issues. The XHTML working group, though, have been kindly keeping us apraised of their status by releasing a draft every 4 months or so. This is commendable, and as a member of the CSS working group, I know how hard that is to do. We (the CSS working group) sometimes let years pass between releasing drafts of our modules!

Personally, I think XHTML2 is shaping up to be a great specification.

Here are some of the highlights:

  1. Any element can be made into a link, not just the <a> element, simply by adding an href attribute.
  2. Any element can be marked with an edit attribute to indicate that it was inserted, deleted, changed or moved.
  3. Any element can have a cite attribute pointing to a URI from which the information contained in the element was obtained.
  4. The <section> and <h> elements make life a lot easier for those editing large documents or generating content on the fly: you no longer have to remember what nesting depth you're at for your headers.
  5. The lone <br/> element is finally upgraded to a fully fledged <l> ... </l> element, so that instead of marking the line break, you can actually mark the real content: the line itself.
  6. Paragraphs can now contain lists and tables as well as text, so that if your sentence contains a list, you don't need to lie in your markup and split your paragraph into two bits with a list between them.
  7. The <nl> element! At last, pages can have explicit markup for Navigation Lists. Instead of using deeply nested sets of <div> or <ol> elements, with lots of JavaScript to make them open and close, XHTML2 provides you with a simple element that lets you give a tree structure to your navigation links. Plus, using HTCs or XBL (or whatever binding and behaviour language the W3C have standardised by the time XHTML2 becomes widely used), you can change this behaviour without changing your markup.

There are also several more controversial features that I think are great, such as:

  1. It is an XML language, which means that all documents must be well formed or they simply won't render.
  2. It uses namespaces, meaning that it can be mixed with content from other W3C specifications such as MathML.
  3. Backwards compatiblility is explicitly not one of its design goals, so some of the hard changes that HTML has needed for some time are possible.
  4. Its design, by and large, meshes well with the styling capabilities of CSS and binding technologies like HTCs or XBL. This means it is easy to style, but also easy to implement.
  5. The style attribute is removed, which means that in XHTML2 authors are forced to think about separating style from content once and for all. And for those of you who still say you need the style attribute: I've gone over two years now without using it. I know this, because I set about, two years ago, to see if I could find a use case for the style attribute, and I never found one. If you disagree, drop me a line with your use case.

There are several commonly repeated myths about XHTML2:

<acronym> is gone
It was redundant with <abbr>, which is still present. In practice, there is no clear advantage in distinguishing the two, and not always a clear line dividing the two either.
<q> is gone
It has been replaced by <quote>, which has slightly different semantics with respect to quotemarks. In HTML4, user agents were technically forced to add quotemarks, regardless of CSS. In xHTML2, you get to add quotemarks either in the document, or in the stylesheet, depending on your personal authoring style and preference.
<cite> is gone
This decision has been reversed and it will return in the next draft.
<img> is gone
It was already on its way out in HTML4, and is replaced by <object> which provided much better capabilities for fallbacks and alternate text.
<applet> is gone
It was already deprecated in HTML4, and is similarly replaced by <object>.
<br> is gone
It is replaced by the more structurally sound <l>ine element.

Do I expect XHTML2 to be used the moment it enters the Candidate Recommendation stage? Of course not! The fact that xHTML2 won't be widely used before the end of the decade is not a problem. For some reason, the Internet populous has this strange idea that if something isn't adopted overnight, it must be a failure. Things take time! You have to get the spec implemented, and you have to get the implementations into the hands of the public at large, before big sites will even consider switching to a new technology.

And for those people who actually want a widely supported layout language, don't care about accessibility, don't understand the difference between semantics and style, and don't want to use PDF, then HTML 3.2 is still a W3C Recommendation, and will remain supported for a long, long time. Nobody will be forcing anyone to use XHTML2 on their sites if they don't want to.

Pingbacks: 1 2 3

2003-01-12 07:11 UTC Vice City: Things to do

I'm at 16% completion... here's what I've found to pass the time so far:

  1. Plot missions
  2. Taxi service
  3. Police missions
  4. Fire missions
  5. Ambulance missions
  6. Pizza deliveries
  7. Cross country motorbike race
  8. Cross country car race
  9. Remote control car race on the beach
  10. Remote control plane race
  11. Remote control helicopter race
  12. Holding up all the shops
  13. Performing jumps, flips and other stunts
  14. Buying property
  15. Getting your police rating up to six stars and then evading capture
  16. Rampages
  17. Finding hidden packages
  18. Picking up prostitutes
  19. Running people over to get money

...and there are still areas of the map I haven't even attempted to explore. I just love the depth of Vice City's gameplay!

2003-01-12 00:21 UTC Vice City: First note to self

I must remember to pick up the hidden packages that I found while flying the remote control helicopter: one under the plane in the hangar at the back of the airport, and one on the big helipad.

2003-01-09 13:30 UTC Good timing

When would you say is the best time, on the Northern hemisphere, to switch off the main water heating device of the house for several days in order to be able to test and clean it?

Some time in August, maybe?

Because apparently January 9th was the chosen date.

Now if you'll excuse me I have to go and thaw the orange juice that I just poured into my glass two minutes ago.

2003-01-05 22:50 UTC Another weekend

Friday: Kamakaze, Xiven and GwieF (in reverse chronological order) arrive and we go to see The Two Towers. A great episode — I'm certainly enjoying this series more than I did the book. I noticed the two horse riding kids were credited as "Cute Rohan Refugee Children", which I thought was quite amusing.

We come back and watch the Stargate SG-1 episodes that have been sitting on my TiVo for the last month or so waiting for this day. (Of the four of us, I'm the only one who gets cable TV. Sigh. This country is so backwards.) Oh, yeah. These are the three episodes that haven't been shown in the US yet... Mwuhahahahahaha! Great episodes... this season is easily as good as if not better than the previous ones.

Saturday: What. On. Earth. Is. This. My "STARGATE" wishlist matches a new show: Stargate Infinity. Oh dear. What have they done. How can this be.

I am speechless for several long, shocked, minutes.

Time to learn how to permanently block things from my memory.

Thankfully, apparently this series is officially not cannon, so we don't have to worry about them totally screwing up the fragile but currently surprisingly consistent plot.

Later, we go to see Nemesis along with Cosmo and Chiara. (Hey! Good use of subdomains from a movie company! Very encouraging.) Great music during the end credits. I was very impressed by the way the third writer (in credit order) managed to write himself out of the plot and back into the plot in the same film, although as usual this film has a bunch of flaws (the aforementioned writing-out-of-the-plot of one of the characters, for example: why didn't he just turn it off???). After that, Xiven completed two of my Vice City missions for me (this is probably the best game I've ever seen, from a gameplay point of view).

Sunday: GwieF earns some thousands of dollars as a fire fighter (Vice City is addictive) while I reel from the shock of seeing the start of Episode 2 of... no, I can't bring myself to say it. Deary me. What. Did. They. Do.

Maybe I should watch those episodes again and form a new opinion.