The WHATWG Blog

Please leave your sense of logic at the door, thanks!

Author Archive

WHATWG Weekly: Microdata, WebSocket protocol, Web IDL

Monday, July 11th, 2011

The debate on what to do with mutation events is still ongoing, Web IDL and the WebSocket protocol are heading towards Last Call, HTML5 still is in Last Call, and Karl is still providing an alternative view on things in the Open Web Platform Weekly Summary.

Changes to the specification

While the W3C is still working on setting up another one of its Task Forces to sort out whether schema.org should use distributed extensibility via RDFa or Microdata, Ian Hickson wrote a lengthy email addressing Microdata feedback from the last month. This resulted in numerous changes to the specification.

Web IDL

For better or worse (I personally like it) Web IDL is the language to design APIs for the web. Thanks to heycam (and Mozilla for employing him to do this) it has been moving forward again and will probably be published as W3C Last Call Working Draft soon. The significance for web developers is that every specification that defines APIs of some kind (and everything cool but CSS does these days) uses it, so knowing how it works is useful.

The WebSocket protocol

Salvatore Loreto, co-chair of the IETF group responsible for developing the WebSocket protocol, announced on their mailing list that the protocol will go for IETF Last Call today. Implementations are still all over the place. Most browser implementations are still not further than one of the input documents to the IETF group. Firefox 6 will likely ship an updated version, using a vendor prefix. Plans from other vendors are less clear. However, I would expect them all to rather rapidly adopt this as it gives such a huge advantage in terms of speed on sites that use it.

Email

Posted in Weekly Review | Comments Off on WHATWG Weekly: Microdata, WebSocket protocol, Web IDL

WHATWG Weekly: Web Component Model and replacing Mutation Events

Monday, July 4th, 2011

Last week in standards world was about a component model for the web and mutation events, mostly. As a reminder, there is also the Open Web Platform Weekly Summary written by Karl.

Changes to the specification

There were only two changes this week. In response to feedback the way audioTracks and videoTracks (media captioning features) work has been changed.

The second change was purely editorial. Reorganizing the rendering section of the specification. The rendering section prescribes how HTML ought to be rendered in interactive desktop user agents (i.e. browsers), up to and including the nitty gritty details of quirks mode.

Outside the WHATWG

Dimitri Glazkov (Google) shared his work on a component model for the web. Maciej Stachowiak (Apple) outlined a number of a concerns with it. It seems still in the early stages, but this will eventually allow for better control of styling form controls and creation of your own controls (i.e. reusable components).

Olli Pettay (Mozilla) put forward a proposal to replace mutation events. Everyone is in favor of replacing mutation events because of their complexity, but exactly how is still under discussion. Rafael Weinstein (Google) explained why ideally he would prefer an alternative approach using an observer for mutations. He would be happy with the proposal Olli put forward though. After a lot of discussion Boris Zbarsky (Mozilla) considers that we might need both APIs.

WHATWG mailing list

Posted in Weekly Review | Comments Off on WHATWG Weekly: Web Component Model and replacing Mutation Events

WHATWG Weekly: Event Constructors, Augmented Reality, and a new HTML5 Timeline

Monday, June 27th, 2011

Still behind with most of the specifications I edit (as ever, really), but did catch up with what went down while I was away and tracked what happened during the week.

Changes to the specification

Errors in workers (the best place to write synchronous code) now propagate up all the way to window.onerror. In addition, self.location in workers now stringifies.

The postMessage() API became a little more complicated for forthcoming support of transferring ArrayBuffer objects. Instead of cloning the ArrayBuffer object this means that the sender ceases control of it. As cloning is no longer required using this functionality would be a performance win for applications. (And less memory usage.)

Mailing list

On the mailing list details of collapsed whitespace handling for the contenteditable attribute are hashed out, as well as getSelection() in the context of vertical writing modes, HTTP adaptive streaming of video, drawing with singular transforms and zero-sized gradients on canvas, and a few other things. There were also some requests:

Elsewhere

The DOM Core specification gained support for event constructors. Once this is shipped in browsers you will be able to do var ev = new Event("yay"). You can set attributes via a second argument: var ev = new ProgressEvent("progress", {loaded:42}).

In W3C bug 10623 the future of exceptions on the web platform is being discussed. Whether we should continue using DOMException or a new approach that relies less on the awkward code attribute checking. Input appreciated!

W3C HTML WG

Maciej posted a revised timeline for the W3C’s work on HTML5 (WHATWG develops a parallel edition of HTML that continuously evolves and has no version number). The W3C HTML5 draft is in Last Call which means your technical comments have to be filed by a certain date. That date is 3 August 2011. From that date onwards it is expected to take until new years until all feedback is addressed by the editors, and until end of April 2012 until the Working Group has verified. (At the moment the HTML WG charter calls for the HTML5 Candidate Recommendation draft to be published at that time. It seems likely however another Last Call draft is required first. Feedback has already resulted in substantive changes.)

Earlier Maciej also posted on editorial assistants that will help Ian out with dealing with the Last Call feedback.

Posted in Weekly Review | Comments Off on WHATWG Weekly: Event Constructors, Augmented Reality, and a new HTML5 Timeline

WHATWG Weekly: Back!

Monday, June 20th, 2011

Big round of applause for Shelley for taking over in my absence. Much appreciated. As I am still somewhat catching up myself with everything that has happened in the last three months I decided to summarize changes to the WHATWG specification since May 23 and highlight a few other efforts I noticed. Hopefully next week I am back up to speed.

Changes to the specification

The send() method of the WebSocket object now accepts ArrayBuffer and Blob as arguments. I.e. the Web sockets API supports binary data. On the receiving end you can specify the type of object you want using the new binaryType attribute.

The application cache support gained support for caching of cross-origin resources over a secure HTTP connection.

Parsing of elements related to ruby markup was made more forward compatible.

A new typemustmatch attribute was introduced for object to ensure only specified plugins can be initialized. If you link cross-origin resources from object you should use this feature to prevent your users from being attacked.

The EventSource object is now enabled with cross-origin support, making it possible for developers to use different servers for the streaming aspects of their application.

These were just the highlights. Numerous other changes have been made, e.g. the WebVTT file signature was simplified, a security check for the AddSearchProvider() API was removed, the error and close events were removed from PeerConnection, et cetera. You can use the HTML5 Tracker to find out more.

Elsewhere

A little before May 23, but still worth highlighting. Adam Barth tackling processing of URLs in Parsing URLs for Fun and Profit. URLs are of course fundamental to the web, but much like any other piece of technology deployed on the web (e.g. HTML, CSS, HTTP) URLs have interoperability issues. As with the work done by WHATWG on HTML, the plan is to take those away.

Alexey Melnikov and Julian Reschke meanwhile are drafting Update to MIME regarding Charset Parameter Handling in Textual Media Types attempting to finally fix the brokenness of the ancient RFC 2046. In particular, how encodings are handled for text/* media types.

Posted in Weekly Review | 2 Comments »

WHATWG Weekly: Return of the Layout Table

Monday, March 14th, 2011

This is my last WHATWG Weekly for a while. Shelley Powers will take over starting next week. Meanwhile my friend (and colleague these days) Karl Dubost has started writing similar summaries for the W3C Blog: Open Web Platform Weekly Summary. Hopefully this is just the beginning.

EventSource, Workers, and Progress Events

The W3C WebApps Working Group published three Last Call Working Drafts: Server-Sent Events (EventSource), Web Workers, and Progress Events. In theory Last Call is the final check before a specification is more or less done. In practice it can still take over seven years. Irrespective of theory and practice, the sooner you submit your comments on a specification the better. Specifications are implemented, then become used, and at some point become immutable in areas you might be displeased with. You want to beat that.

A restrictive datalist, inline lists, cross-origin databases, and drawWindow()

Over on the WHATWG mailing list Markus Ernst brought up restricting the color palette for the <input type=color> control. Using the datalist element you can suggest a palette, but you cannot restrict it any way. This discussion quickly generalized to all new controls as they have a similar limitation. Jonas Sicking pointed out that providing a good user interface might be difficult. I said that we should probably wait a bit until the existing functionality is implemented by most user agents before adding yet more features.

Jukka K. Korpela re-raised the question many have had since they learned HTML: What about paragraphs that contain lists? James Graham pointed out that the section element cannot be used. Markus Ernst suggested we introduce a new inline list element. Probably best to just not worry too much about it and carry on as we have done for the past decade.

Apart from markup, there were a few API requests too. Brett Zamir wants cross-origin databases. Erik Möller (with Opera) asked about making Mozilla’s <canvas>.drawWindow() part of the web platform.

Layout tables

The W3C HTML Working Group decided that when you put role=presentation on a table element it can be used (in a conforming way) for presentational purposes.

Posted in Weekly Review | 9 Comments »