W3C home > Mailing lists > Public > public-html@w3.org > September 2009

Re: [html5] Event handler DOM attributes

From: Jens Meiert <jens@meiert.com>
Date: Fri, 4 Sep 2009 10:45:44 +0200
Message-ID: <9fbcac550909040145q5d8bf7f6uc5e7ece83b186132@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: public-html@w3.org
> > > separate their usir interface logic from their user interface
> > > semantics. On the contrary, it seems preferable to keep them
> > > together.
> >
> > For authoring convenience, maybe. For maintenance, no.
>
> I would have thought they were the same.

> Sure, there are limits to how much you should put into the markup. But
> things like <button onclick=""> and <body onload> or <img onload> are
> pretty harmless as far as that goes -- you're not going to change a button
> to stop responding to clicks unless you also change a lot more.

With due respect, that is just not true. Practice does not depend on
project complexity to prove that; it’s just a matter of time until you
end up maintaining HTML documents or templates for which a simple
script tweak would have sufficed (similar to style sheet updates).

(I think we can move this discussion off-thread though.)

-- 
Jens Meiert
http://meiert.com/en/
Received on Friday, 4 September 2009 08:46:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:07 UTC