Re: [html5] Event handler DOM attributes

> > > 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

Received on Friday, 4 September 2009 08:46:43 UTC