Re: [html5] Event handler DOM attributes

> The presentational markup wasn't included in HTML5 because it is
> unnecessarily media-dependent. Event handlers don't seem to have this
> problem. I don't think it makes sense to force authors to 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.

The problem is the same with presentational markup. If you hardwire
presentation into your documents, you very likely need to update
documents to change presentation. If you hardwire behavior (event
handling) into documents, you very likely need to update documents to
change behavior. Given that usually you’re dealing with more documents
(this includes dynamic templates) than style sheets or scripts, these
changes are more expensive.

I trust your and other Working Group members’ judgment however. I
wouldn’t expect anything but the underlying problem and the goal of
orthogonality to continue to be something for which “best practices”
need to do the dirty work.

-- 
Jens Meiert
http://meiert.com/en/

Received on Friday, 28 August 2009 16:17:16 UTC