loge.hixie.ch

Hixie's Natural Log

2006-10-16 23:52 UTC The DOM0 Legacy: HTMLOptionsElement

I'm trying to spec DOM5 HTML, a part of the same specification as HTML5/XHTML5. Specifically, today I'm trying to specify the various collection interfaces, and in particular, I'm trying to specify HTMLOptionsCollection.

The DOM2 HTML spec's take on the matter is somewhat far from the truth.

Here are some amusing tidbits I've found so far:

The spec is going to be a mix of all of the above, so none of the browsers are going to exactly match it.

2006-10-02 06:52 UTC Real sacrifices (and some notes on what I've been up to)

Over the last few weeks I've finished several key parts of the HTML5 specification, most notably innerHTML for HTML elements, document.write() in HTML documents, the new datagrid element, and the drag and drop APIs.

Yay! This makes me happy.

Speccing innerHTML was hard (by which I mean "fun") because despite the fact that every Web browser implements it, none of them agree on exactly what it should do. Which is normal of course when you don't have a spec! I had to come up with rules that are compatible with what browsers do, while being sane for the bits where they differ (none of the browsers exactly match the spec, because I found clear bugs in all of the browsers).

Now I have to work out what to do next.

The problem, of course, is that by specifying things like document.write(), while we hopefully will gain better interoperability and thus less hassles for authors, we symbolically lose the battle for cleanliness in Web authoring. That, of course, is the argument that most of the non-WHATWG-supporting Web standards community keep making: by defining exactly how tag soup should work, we are losing the ability to switch entirely to a clean XML world. Obviously (since I keep working on it!), I'm not really convinced. Authors are using HTML, there's no point pretending they aren't.

Sometimes we lose, but when that happens we have to accept it and hope that we'll have an opportunity to get something better later. That's what I think (and hope!) is happening.

Thankfully, there's at least some hope that myself (and the more than eighty contributors to the HTML5 spec so far) have the agreement of a wider community — several browsers are implementing some of the various proposals, and some of the things to come out of the WHATWG have now ended up on the W3C TR page.

That this would happen so fast was unthinkable when we started it all.

2006-09-23 00:03 UTC Tag Soup: innerHTML interoperability (or lack thereof)

I wrote a "simple" test.

I then tested five browsers: IE7b3, Firefox (20060921 trunk), Safari (2.0.4 and Webkit Fri Sep 22 14:05:47 GMT 2006), and Opera 9.

I got five different results.

IE
  • #comment: CTYPE ht
  • HTML
    • HEAD
      • TITLE
      • SCRIPT
    • BODY
Firefox
  • DOCTYPE: html
  • HTML
    • TITLE
      • #text: A
    • #text: B
    • BODY
      • #text: 0
Safari (latest released version)
  • HTML
    • TITLE
      • #text: A
    • #text: B
    • HEAD
      • TITLE
        • #text: TEST
    • BODY
      • #text: 0
Safari (Webkit nightly build)
  • HTML
    • #text: B
    • HEAD
      • TITLE
        • #text: TEST
    • BODY
      • #text: 0
Opera
  • HTML
    • HEAD
      • TITLE
        • #text: A
    • #text: B
    • BODY
      • #text: 0
      • #text:
      • TITLE
        • #text: TEST

Meep.

Pingbacks: 1 2

2006-09-19 03:04 UTC Work

I went to Burning Man.

I went LARPing in the UK and saw family.

I went on a houseboat trip.

I saw various friends.

Now it's time to get back to my regularly scheduled hobbies.

2006-08-29 18:50 UTC Vacation

I will be away for the next three weeks, mostly without internet access. (In fact, mostly without even running water.)

Hopefully by the time I get back XBL2 and CSS2.1 will have been published as Last Call and Candidate Recommendation drafts respectively.

I've unsubscribed from a bunch of mailing lists and disabled mail from a bunch of bug systems, so if there's anything you want me to see, forward it to me. I doubt I'll look at anything but mail sent directly to me and a few key lists (like the WHATWG list) when I get back.