23 Jan
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.
textareanow supportswrapagain. This is cool if you’ve got a text box that takes code listings (which I do).inputelement supports: datetime|datetime-local|date|month|week|time|number|range|email|url – perfect for validation.manifestattribute, lending more support to offline (web) apps.- The
striketag 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. nameattribute is being striped away from forms and the like (obviously not inputs elements). No more excuses IE.getElementsByClassName. Need I say more?classList. We will be able to use methods such ashas(),add(),remove()andtoggle()to manipulate classes on elements. I can almost smell the library changes.
You should follow me on Twitter here I'll tweet about JavaScript, HTML 5 and other such gems (amongst usual tweet-splurges)


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?
Sorry, that should read:
my text-to-html-function turns -del- into <del>del</del>, not <strike>del</strike>
@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.