The WHATWG Blog

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

Archive for January, 2007

Web Standards Group: HTML 5 Presentation

Sunday, January 21st, 2007

On Thursday evening (2007-01-25), at the Web Standards Group meeting in Sydney, I'll be doing a presentation about the future of HTML. It will be a 20 minute presentation giving an overview of the new features in HTML5. So, if you're in Sydney and interested learning more about HTML5, or maybe the other 3 topics being presented, RSVP now and come along!

For those of you who can't make it on the night, the slides, and hopefully a podcast of the event, will be made available afterwards.

Posted in Events, WHATWG | Comments Off on Web Standards Group: HTML 5 Presentation

Proposing URI Templates for WebForms 2.0

Thursday, January 11th, 2007

I recently had an off-list email conversation with Ian Hickson about the possibility of adding URI Template support to the FORM element in WebForms 2.0. I've documented our conversation and my response to his suggestion to use server-side direct or Javascript instead over at the Well Designed URL Initiative blog. However, I've provided some examples of what I'm proposing below:

<form 
  action="http://foo.com/model"
  template="http://foo.com/{make}/{model}/"
  method="get">
  <input type="text" name="make" />
  <input type="text" name="mode" />
  <input type="submit" />
</form>
<form
  action="http://www.myblog.com/topic"
  template="http://www.myblog.com/{topic}/"
  method="post">
  <select name="topic">
    <option value="first">My 1st Post</option>
    <option value="second">My 2nd Post</option>
    <option value="third">My 3d Post</option>
  </select>
  <input type="text" name="comment">
  <input type="submit">
</form>
<form 
  action="http://blog.whatwg.org/topic"
  template="http://blog.whatwg.org/{topic}"
  method="post">
  <select name="topic">
    <option value="feed-autodiscovery">
       Feed Autodiscovery
    </option>
    <option
value="text-content-checking">
        textContent Checking
    </option>
    <option value="checker-bug-fixes">
        Bug Fixes
    </option>
    <option
        value="significant-inline-checking">
        Significant Inline Checking
    </option>
    <option value="charmod-norm-checking">
        Charmod Norm Checking
    </option>
    <option
value="proposing-features">
        Proposing features
    </option>
  </select>
  <input type="submit">
</form>

One point I made on the WDUI blog that I also I want to make here is that is seems from my time on the REST-discuss list that many of the REST experts tend toward using (what I call well-designed URLs, i.e. URLs where the resource is identified by path instead of query string. With WebForm 2.0's pending support of PUT and DELETE, it would be just short of a crime not to include support for posting to clean URLs in WebForms 2.0.

So I really hope that Ian and the WHATWG can see their way clear to consider adding this feature to WebForms 2.0. And if the main issue with it is needing to have it written up for inclusion in the spec, I'm more than happy to help.

Posted in Forms | 9 Comments »