HTML 5 – what caught my eye

I’ve been looking over the HTML5 drafts and HTML4 – HTML5 differences doc, and here’s a list of bits that caught my eye, and why.

  1. textarea now supports wrap again. This is cool if you’ve got a text box that takes code listings (which I do).
  2. input element supports: datetime|datetime-local|date|month|week|time|number|range|email|url – perfect for validation.
  3. manifest attribute, lending more support to offline (web) apps.
  4. The strike tag is being binned. The funny thing being all the blogs that use the tag to indicate a correction will, without an update (and if they’re in standards mode), have the mistake plugged back in. Then again, the browsers will probably keep the tag.
  5. name attribute is being striped away from forms and the like (obviously not inputs elements). No more excuses IE.
  6. getElementsByClassName. Need I say more?
  7. classList. We will be able to use methods such as has(), add(), remove() and toggle() to manipulate classes on elements. I can almost smell the library changes.

3 Responses to “HTML 5 – what caught my eye”

  1. I’m really looking forward to the new form-features and the new JS.

    About the strike-element. Isn’t it plenty more common to use the (more appropriate) del-element to mark up corrected/deleted text?

    I’ve never used strike and my text-to-html-function turns -del- into del, not del (granted, I’ve written it myself, but I think Textile also uses del rather than strike).

    But if they remove strike, why not remove b and i as well?

  2. Sorry, that should read:

    my text-to-html-function turns -del- into <del>del</del>, not <strike>del</strike>

  3. @Andreas – you’re right, I should correct the post. I realised that it was del that’s typically used for this function – but good point about the b and i.

Leave a Reply
Not required

CODE: Please escape code and wrap in <pre><code>, doing so will automatically syntax highlight